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

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!convex!darwin.sura.net!wupost!uwm.edu!zazen!doug.cae.wisc.edu!umn.edu!esper
  3. From: esper@cs35b.cs.umn.edu (Dave Sherohman)
  4. Subject: struct array question
  5. Message-ID: <1992Aug14.193325.7549@news2.cis.umn.edu>
  6. Sender: news@news2.cis.umn.edu (Usenet News Administration)
  7. Nntp-Posting-Host: cs35b.cs.umn.edu
  8. Organization: University of Minnesota
  9. Distribution: comp
  10. Date: Fri, 14 Aug 1992 19:33:25 GMT
  11. Lines: 19
  12.  
  13. Howdy, folks...  Got a question here for you of the 'why doesn't this work?'
  14. variety...  The code is:
  15.  
  16. struct wintype {
  17.         char buf[4000];
  18.         short curx;
  19.         short cury;
  20.         short initialized;
  21. };
  22.  
  23. wintype win[5];
  24.  
  25. Compiling with Turbo C++, I'm told 'Type mismatch in redeclaration of wintype'.
  26. It is not declared anywhere else (I've tried changing both occurrences of
  27. 'wintype' to 'nwintype', and I get the redeclaration complaint about nwintype
  28. (plus a lot of complaints about wintype not existing...)).  Ideas/explanations,
  29. anyone?
  30.  
  31. esper@ima.umn.edu
  32.