Hi,
i have a question about using new/delete classes. This is a simle outline of the code:
class a {
blah blah blah
class b {
blah blah blah
class c {
blah blah blah
};
};
};
int main (){
a newA;
a::b newC;
a::b::c newC;
//to call fucntions
newA.blah
newB.blah
newC.blah
}
//but i neeed to use new and delete, so how would that work?
int main (){
A *newA = new A;
A::B *newB = new A::B???
....
....
delete newA;???
}
Any help would be appriciated