I can't seem to declare iterators with custom data types. Whenever I have a line such as
vector<C1>::iterator it;
I always get an error message saying "error: expected ';' before "it"". What exactly am I doing wrong? This doesn't happen for basic data types such as int and float. I know it has to be something really basic, but I've searched both this site and a book and haven't found anything. Thanks in advance.
Agrees with helios. The line of code looks correct - I wager the error is nt related to the vector or the iterator declaration. If this doesn't help, post more code