By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,234 Members | 1,889 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,234 IT Pros & Developers. It's quick & easy.

Using STL

P: 5

I want to use a vector in a class located in “MyProject/Classes/MyClass”. So I say:

#include <vector>

and when I compile and build the project, everything is fine up to here. But when I declare a dynamic array, say,

vector<int> v

in MyClass, it is still unknown to the compiler and "vector" is reported as a new type…

Where is the problem??

Jul 6 '06 #1
Share this Question
Share on Google+
1 Reply

P: 5
OK... I found it myself, I just missed "using namespace std;" :rolleyes:

thanks for reading me... ;)
Jul 6 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.