PDA

View Full Version : Problem with vector



cwnelatury
28th May 2009, 02:42
Hey all


Every time i put


vector<int> variable;

in a class(header file)...i get and error that says:

c++ forbids declaration of 'vector' with no type..
also get..expected ; before <;

I am not sure why this is happening..I include vector at the top.


Please help...this is preventing me from completing a huge project

lni
28th May 2009, 02:49
std::vector<int>

cwnelatury
28th May 2009, 03:10
Thanks buddy..u rock!