HELP....structures

Jerry Davis Rsch. Statistician JDAVIS%GRIFFIN.BITNET at cunyvm.c
Sat Jun 18 11:18:26 AEST 1988


I am trying to build a data structure which consists of variable
length records.  The number of records is also variable but within
a range of 2-7.  It looks like this:

                struct cit {
                           char rec(81)  /*I'm using '()' for square
                           };            /*brackets in this question
                struct cit body(8);      /*because my terminal is of
                                         /*IBM 3270 type.
Questions:
#1 Is it possible to declare a struct of array of structs so that I can
   file the whole thing by name instead of looping through body(i)?
#2 If #1 is true, will the keyword NULL (placed in the record following
   the last filled record) keep the remaining empty records from being
   filed?
#3 Am I way off base and babbling nonsense?

BTW I'm using msc v4.0 and haven't had much experience using data
    structures (big news, huh).  Anyway, I'll greatly appreciate any
    help.  Thanks....

Jerry      bitnet jdavis at griffin, anyone else jdavis at griffin.uga.edu
Acknowledge-To: <JDAVIS at GRIFFIN>



More information about the Comp.lang.c mailing list