cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
vector<ClasseName*> name;
vector<ClasseName*> name;
May 27, 2010 at 4:43pm UTC
Ensei
(19)
I have a 3 level hierarchy with ClasseName at the top.
I want to make a vector<ClasseName*> name; vector.
Where should I put it?
If I put it in int main(){} the rest of the functions say it has not been declared
May 27, 2010 at 6:52pm UTC
Athar
(4466)
Put it wherever you need it.
If you put it inside main(), you'll have to pass it as a reference to whichever function needs it.
Topic archived. No new replies allowed.