[EMAIL PROTECTED] writes: > To correct this I want to perform member > initialization, but I have no idea how to do this correctly.
Add initializing constructor to MyDate: > typedef struct MyDate > { > unsigned short year; > unsigned short month; > unsigned short day; MyDate() : year(0), month(0), day(0) { } > } MyDate; > > > class > { > public: > MyTest(); > private: > MyDate date; > } > > void MyTest::MyTest() : // > date.year(0) -> this doesn't work. What syntax should i use? MyDate() > { ... > } Cheers, -- In order to understand recursion you must first understand recursion. Remove /-nsp/ for email. _______________________________________________ help-gplusplus mailing list help-gplusplus@gnu.org http://lists.gnu.org/mailman/listinfo/help-gplusplus