RE: [Dev-C++] compiling project fails
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2005-03-21 20:07:40
|
I can't really see what stupidity there is to require a semicolon after a
type or data declaration. There is really no difference from
enum Color { RED, GREEN, BLUE };
int hello,there;
typedef unsigned Age;
struct Person {
std::string name;
Age age;
};
unsigned short seed[] = {0x18da,0xbc3c,0x52f4,0x5100};
...
/Per W
> Note that there must be a semicolon after the class declaration, just like
> for a struct. I inserted it in the right place in the code above. This
> stupid idea was eliminated in Java, but sadly still remained in C++.
>
> HTH!
> Matt
|