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