Using classes in vectors

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • youngie
    New Member
    • Sep 2006
    • 1

    #1

    Using classes in vectors

    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?

    Thanks

    Josh
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    Not without a code sample since what you describe is not the behaviour of a vector.

    Comment

    Working...