By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,066 Members | 1,841 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,066 IT Pros & Developers. It's quick & easy.

Using classes in vectors

P: 1
Hey Guys,

Just before i ask this question, im not the worlds best coder and im not fond of C++ ( perhaps cus i dont understand it).
However i have this stupid assignmenti have to do, cliff notes version its a text based "tamagotchi" game on a unix box.
I have created a class called baby and the functions seem to work fine in it.We can have as many baby's as we wont in the daycare centre therefore i decided to create a vector. Vector works great, however it takes in my information about the baby but i cant get it out.

any ideas?


Sep 18 '06 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 8,916
Not without a code sample since what you describe is not the behaviour of a vector.
Sep 18 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.