Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site ritcv.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!vax135!cornell!bullwinkle!rochester!ritcv!spw2562 From: spw2562@ritcv.UUCP (Fishhook) Newsgroups: net.unix-wizards Subject: Need help with C Message-ID: <9294@ritcv.UUCP> Date: Wed, 29-Jan-86 13:41:32 EST Article-I.D.: ritcv.9294 Posted: Wed Jan 29 13:41:32 1986 Date-Received: Sat, 1-Feb-86 05:50:39 EST Reply-To: spw2562@ritcv.UUCP (Fishhook) Organization: Rochester Institute of Technology, Rochester, NY Lines: 37 I'm having some problems with structures in a C program I've been writing. I have a structure declared as follows: struct datestruct { char month, day, year; } Further on I have a structure declared: struct dbstruct { double ... struct datestruct date; } and the declarations: struct datestruct date; struct dbstruct dbase[63]; I try to do a comparison between these, i.e. ( date == dbase[loop].date ) but the compiler blows up on this, saying the two are incompatible. I'm almost positive I've done this sort of thing before, and can't seem to find why it won't work. Anyone have any ideas/suggestions as to why this is? Also, is there a better newsgroup for these type of inquiries? ============================================================================== Steve Wall @ Rochester Institute of Technology Usenet: ..!rochester!ritcv!spw2562 (Fishhook) Unix 4.2 BSD BITNET: SPW2562@RITVAXC (Snoopy) VAX/VMS 4.2