Originally Posted by laserlight Looks like it. Is this anywhere close to right? Code: String& String::operator ++() { delete []buf; buf = new char[stringlength]; int i; for(i = 0; i<stringlength; i++) buf[i] = ++buf[i]; return buf[i]; }
String& String::operator ++() { delete []buf; buf = new char[stringlength]; int i; for(i = 0; i<stringlength; i++) buf[i] = ++buf[i]; return buf[i]; }