home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!convex!darwin.sura.net!wupost!uwm.edu!zazen!doug.cae.wisc.edu!umn.edu!esper
- From: esper@cs35b.cs.umn.edu (Dave Sherohman)
- Subject: struct array question
- Message-ID: <1992Aug14.193325.7549@news2.cis.umn.edu>
- Sender: news@news2.cis.umn.edu (Usenet News Administration)
- Nntp-Posting-Host: cs35b.cs.umn.edu
- Organization: University of Minnesota
- Distribution: comp
- Date: Fri, 14 Aug 1992 19:33:25 GMT
- Lines: 19
-
- Howdy, folks... Got a question here for you of the 'why doesn't this work?'
- variety... The code is:
-
- struct wintype {
- char buf[4000];
- short curx;
- short cury;
- short initialized;
- };
-
- wintype win[5];
-
- Compiling with Turbo C++, I'm told 'Type mismatch in redeclaration of wintype'.
- It is not declared anywhere else (I've tried changing both occurrences of
- 'wintype' to 'nwintype', and I get the redeclaration complaint about nwintype
- (plus a lot of complaints about wintype not existing...)). Ideas/explanations,
- anyone?
-
- esper@ima.umn.edu
-