Long Li <[EMAIL PROTECTED]> writes: > class da{ > public: > void printargu( int a = 0 ); > }; > > void da::printargu( int a = 0 ){ > cout << a << endl; > }
That isn't valid C++. You can only specify default argument *once* (and only in the first declaration of the function). Correct code: class da { public: void printargu(int a = 0); }; void da::printargu(int a) { cout << a << endl; } 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