home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!portal!cup.portal.com!Aurelius
- From: Aurelius@cup.portal.com (Mark Christian Barnes)
- Newsgroups: comp.lang.c++
- Subject: Re: struct array question
- Message-ID: <64052@cup.portal.com>
- Date: Sat, 15 Aug 92 00:34:34 PDT
- Organization: The Portal System (TM)
- Distribution: usa
- References: <1992Aug14.193325.7549@news2.cis.umn.edu>
- Lines: 17
-
- Hi Dave,
-
- | struct wintype {
- | char buf[4000];
- | short curx;
- | short cury;
- | short initialized;
- | };
- | wintype win[5];
-
- Unless you are knew at C, you have simply forgotten a thing or two:
-
- struct wintype win[5]; /* this will work */
-
- typedef struct wintype { ... } wintype; /* this makes the old line ok */
-
- Regards, Aurelius@cup.portal.com
-