Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

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?



 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com