|
Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006
Initialization in C + + array initialization of the list?
Look at the class definition : B
14.00 B{
* Pa;
Public :
B (* p) (
Pa = sources
}
};
If the class A and B contains a type of b, then use the following table : Initialization
14.00 A{
Bb;
Public :
A () : b (this) (
}
};
However, if the class A and B types of b array includes a how to use initialization list Initialization?
14.00 A{
Bb[10];
Public :
A () : If the initialization b[]? ??????{ 4003rd
}
};
Is it only in the definition of a similar class B setPtr void (* p) to achieve such an adapter? |
Dgfdg
Dddddddddd |
The list is not used array initialization. Not on the vector ah? |
| |