Hey,
Imagine you have the folowing class:
class myclass
{
public:
int x,y,z;
private:
};
vector<myclass> something;
And I would want to output every variable dynamicaly.
So I would get this as output:
x :something
y :something
z :something
But I would want this also to happen when a new variable is added.
So if i add:
bool a; //...to the class.
Without adding cout<<something[anyplace].a<<endl; or something.
A friend made it in Flash with a forin loop, ( NOT a normal for int loop) .
Is this possible in c++?
Cheers,
Leo