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

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!wupost!darwin.sura.net!Sirius.dfn.de!math.fu-berlin.de!pbinfo2!news!swen
  3. From: swen@uni-paderborn.de (Swen Thuemmler)
  4. Subject: Re: struct array question
  5. In-Reply-To: esper@cs35b.cs.umn.edu's message of Fri, 14 Aug 1992 19:33:25 GMT
  6. Message-ID: <SWEN.92Aug18163851@snert.uni-paderborn.de>
  7. Sender: news@uni-paderborn.de (News Uni-Paderborn)
  8. Nntp-Posting-Host: snert
  9. Organization: Uni Paderborn FB 17 Informatik GERMANY
  10. References: <1992Aug14.193325.7549@news2.cis.umn.edu>
  11. Distribution: comp
  12. Date: Tue, 18 Aug 1992 15:38:51 GMT
  13. Lines: 23
  14.  
  15. >>>>> About struct array question, Dave Sherohman said:
  16.  
  17. [...] 
  18.  
  19. Dave> Compiling with Turbo C++, I'm told 'Type mismatch in
  20. Dave> redeclaration of wintype'.  It is not declared anywhere else
  21. Dave> (I've tried changing both occurrences of 'wintype' to
  22. Dave> 'nwintype', and I get the redeclaration complaint about nwintype
  23. Dave> (plus a lot of complaints about wintype not existing...)).
  24. Dave> Ideas/explanations, anyone?
  25.  
  26. Your compiler is simply wrong in this case. It seems to handle structures
  27. like C, where the name of a structure cannot be used as a type name
  28. except when prefixed by the keyword struct. C++ doesn't require the
  29. use of the struct keyword.
  30.  
  31. Greetings, Swen
  32.  
  33. --
  34.   Swen Thⁿmmler           *  "Wenn im Namen eines Ideals Menschen Schurkereien
  35.   Sonnenberg 14           *  zugefⁿgt werden mⁿssen, so ist dieses Ideal
  36.   4790 Paderborn-Dahl     *  einen Dreck wert."
  37.   <swen@uni-paderborn.de> *                      -- A. und B. Strugatzki 
  38.