home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / cplus / 12371 < prev    next >
Encoding:
Text File  |  1992-08-14  |  700 b   |  29 lines

  1. Path: sparky!uunet!portal!cup.portal.com!Aurelius
  2. From: Aurelius@cup.portal.com (Mark Christian Barnes)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: struct array question
  5. Message-ID: <64052@cup.portal.com>
  6. Date: Sat, 15 Aug 92 00:34:34 PDT
  7. Organization: The Portal System (TM)
  8. Distribution: usa
  9. References:  <1992Aug14.193325.7549@news2.cis.umn.edu>
  10. Lines: 17
  11.  
  12. Hi Dave,
  13.  
  14. | struct wintype {
  15. | char buf[4000];
  16. | short curx;
  17. | short cury;
  18. | short initialized;
  19. | };
  20. | wintype win[5];
  21.  
  22.  Unless you are knew at C, you have simply forgotten a thing or two:
  23.  
  24. struct wintype win[5]; /* this will work */
  25.  
  26. typedef struct wintype { ... } wintype; /* this makes the old line ok */
  27.  
  28.             Regards, Aurelius@cup.portal.com
  29.