C2143: syntax error : missing ‘;’ before ‘<‘
I might be quite rusty in C++ since I sincerely don’t know the reason of such errors.
The code is actually quite simple. (VS2003)
#include <vector>
class store
{
public:
vector<int>storage;
};
int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}
Because you need to add
std::in front ofvector:The
vectorclass is inside thestdnamespace.Or just add
which is highly NOT recommended, especially for header files.