My problem is that I cannot use the vector statement within a class. I would be grateful for any help.
To illustrate the problem:
If I open an application and generate a State class in the .h file as:
class State
{
};
After #include <vector> & using namespace std; are inserted I can use statements like:
vector<State*> StateList1;
in the form's code.
HOWEVER...
If I generate another class and declare a variable using vector I get errors, for example:
class StateList
{
private:
vector<State*> StateList2;
};
The errors are: Type name expeceted & declaration missing ;
Has anyone implemented the same thing trouble free?
AndyP
To illustrate the problem:
If I open an application and generate a State class in the .h file as:
class State
{
};
After #include <vector> & using namespace std; are inserted I can use statements like:
vector<State*> StateList1;
in the form's code.
HOWEVER...
If I generate another class and declare a variable using vector I get errors, for example:
class StateList
{
private:
vector<State*> StateList2;
};
The errors are: Type name expeceted & declaration missing ;
Has anyone implemented the same thing trouble free?
AndyP