I tried to write my code, and it looks like something like this (i cut some of them to make it readable).
class TimeSeriesDatum
{
public:
TimeSeriesDatum();
//TimeSeriesDatum( double = 0, int = 0, string = "");
TimeSeriesDatum( double, int, string );
// getter, setter...
private:
double value;
};
// in the main
vector<TimeSeriesDatum> myvector;
[B]vector<TimeSeriesDatum>::iterator it;[/B] // 4 errors in this line
And i've got 4 errors for the bold lines in my code, i wonder why. If you have ever had the same problem, can you let me know the solutions?
The errors are:
1) error C2653: 'vector<class TimeSeriesDatum,class std::allocator<class TimeSeriesDatum> >' : is not a class or namespace name
2) error C2065: 'iterator' : undeclared identifier
3) error C2146: syntax error : missing ';' before identifier 'it'
4) error C2065: 'it' : undeclared identifier
Thank you for your attention. I'll wait for your reply.