471,076 Members | 1,236 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,076 software developers and data experts.

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 2035
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 leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.