J
Jianli Shen
Hi,
I want to implement like this:
class A{
int length;
class B{
void operate_length_in_A(){
length++;
}
void use_length_in_A(){
if(length>8){
}
}
B *Bobj;
}
because B will use member in A, so I think I can not put B ahead of
definition of A.
How can I do?
Thanks
I want to implement like this:
class A{
int length;
class B{
void operate_length_in_A(){
length++;
}
void use_length_in_A(){
if(length>8){
}
}
B *Bobj;
}
because B will use member in A, so I think I can not put B ahead of
definition of A.
How can I do?
Thanks