OK, I included these files:
I'm using Dev-C++, and I tried to declare a vector, an iterator for the vector, and a string like this:Code:#include <windows.h> #include <vector> #include <cstring> #include <fstream>
Now, for some reason, I get these stupid errors:Code:vector<string> messages; vector<string>::iterator forward; string vtext;
Then more errors saying that messages, forward, and vtext are not declared. Why would it do this?? I have used vectors before and used strings many many times. This is ridiculous, it will probably turn out to be something stupid. Well, thanks for any help.Code:9 C:\TS.cpp `string' does not name a type 10 C:\TS.cpp `vector' undeclared (first use this function)



LinkBack URL
About LinkBacks


