I think the assignment operator should return a reference to the object (return *this

Also, the parameter should be a const reference (const String& s).
String& operator=( const String& s ){ if( &s != this ) { // do stuff } return *this;}
----------------
Blaster
Computer game programmer and part time human being
Strategy First - http://www.strategyfirst.com
BlasterSoft - http://www.blastersoft.com
[edited by - Blaster on May 14, 2002 4:04:42 PM]