Hey guys,
First post, getting reaquainted with c++. Did a little c++ back in college some 5-6 years ago, but spent most of my pro career doing asp and .net stuff. want to get back into c++.
ive been trying to relearn the library and practice with it a little. can you not have vectors as members of a user class? for example, if i have a header file for a class im creating that looks something like below, i get an error with the vector:
#include <vector>
class myclass
{
private:
int something;
vector<int> temp;
public:
...
...
};
perhaps its the java side of me that wants to do this. is it wrong? can i not get vector containers in my own objects? im sure there must be a way, but every example ive come across so far always has them in main, but that wont do me any good.
thanks