O
oogie
I was trying to declare a list of class objects in a class header file
and I kept getting the following errors in visual c++:
error C2143: syntax error : missing ';' before '<'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2238: unexpected token(s) preceding ';'
In the header file under private data members I had declared a list of
class objects:
private:
list<Clients> clientList;
Where Clients was an earlier defined class. Why is this incorrect? I
also included the <list> library.
and I kept getting the following errors in visual c++:
error C2143: syntax error : missing ';' before '<'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2238: unexpected token(s) preceding ';'
In the header file under private data members I had declared a list of
class objects:
private:
list<Clients> clientList;
Where Clients was an earlier defined class. Why is this incorrect? I
also included the <list> library.