Hi there,
i'm creating my simlpe program about cells in petri-dish.
I have class CELL with data memeber called energy a and some member functions.
I can define object from class CELL creature1.
Problem is, when cell wants to multiply because his energy is too high. So i want create another object CELL creature2 from class CELL but it
must be created automaticly in running program, and other object CELL creature3 etc...
Or how to create object with different values of data members during program ?
Could you please point me in right directions, because i'm lost. yesterday i learned object can't be made from variables.
Or does it? In order to understand the code above you probably have to read quite some tutorials and reference documentation. That is exactly what you should do anyway.