//A.h
#include <vector>
#include <string>
Class A
{
public:
...
...
vector<std::string> vecOfString;
...
private:
....
}
usual errors:
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
error C2238: unexpected token(s) preceding ';'
error C2143: syntax error : missing ';' before '<'
What im trying to do is legal isnt it?
vectorstd::string
Hi,
When i try to create a vector<std::string> vecOfString i get a load of compile errors which i dont understand. my code is:
vector<std::string> vecOfString;
Should be:
std::vector<std::string> vecOfString;
EDIT: Too slow (And what Antheus said about 'class')
Should be:
std::vector<std::string> vecOfString;
EDIT: Too slow (And what Antheus said about 'class')
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement