OK, I included these files:
Code:
#include <windows.h>
#include <vector>
#include <cstring>
#include <fstream>
I'm using Dev-C++, and I tried to declare a vector, an iterator for the vector, and a string like this:
Code:
vector<string> messages;
vector<string>::iterator forward;
string vtext;
Now, for some reason, I get these stupid errors:
Code:
9 C:\TS.cpp `string' does not name a type
10 C:\TS.cpp `vector' undeclared (first use this function)
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.