468,456 Members | 1,647 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,456 developers. It's quick & easy.

Using STL

Hi,

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??

Thanks,
Jul 6 '06 #1
1 2001
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.

Similar topics

5 posts views Thread by Enos Meroka | last post: by
3 posts views Thread by Mike L | last post: by
3 posts views Thread by xzzy | last post: by
14 posts views Thread by pmud | last post: by
8 posts views Thread by acb | last post: by
reply views Thread by Metal2You | last post: by
reply views Thread by Eugene Anthony | last post: by
6 posts views Thread by =?Utf-8?B?U2hhd24gU2VzbmE=?= | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by subhajit12345 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.