R
Rupert Jones
Hi everyone,
I've programmed C++ on a nix platform for several years, and am now trying
to develop using Visual C++ on Windows. However, I'm encountering a problem
with my class identifiers, with the compiler telling me that there's a
syntax error in the identifier as follows:
error C2061: syntax error: identifier 'intPoint';
The definition is as follows:
class intPoint {
public:
int x, y;
}
This code works fine with gnu-c++, but VisC++ throws up the above error.
Has anyone got any clues to help me out? I tried the MSDN library, but none
of the work-arounds seemed suitable. Surely I must be able to declare a
class the way C++ intended?
Regards,
Rupert.
I've programmed C++ on a nix platform for several years, and am now trying
to develop using Visual C++ on Windows. However, I'm encountering a problem
with my class identifiers, with the compiler telling me that there's a
syntax error in the identifier as follows:
error C2061: syntax error: identifier 'intPoint';
The definition is as follows:
class intPoint {
public:
int x, y;
}
This code works fine with gnu-c++, but VisC++ throws up the above error.
Has anyone got any clues to help me out? I tried the MSDN library, but none
of the work-arounds seemed suitable. Surely I must be able to declare a
class the way C++ intended?
Regards,
Rupert.