One solution is to assign each element from the local array to your member array using a loop:
Regards,Code:class foo { private: int nItems[8]; public: foo() { int Items[] = {3,3,5,1,2,3,5,6}; for ( int i = 0; i < 8; ++i } nItems[ i ] = Items[ i ]; } };
Paul McKenzie




Reply With Quote