Sign in to follow this  


Recommended Posts

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: [code] //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?

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this