All pastes #232142 Raw Edit

Something

public cpp v1 · immutable
·published 2006-11-01 06:49 UTC
rendered paste body
//prvt functionint String::first_diff(String s)const{	for (int i = 0; i < STRING_MAX; i++)	{	    if (c[0] == '\0' || s[0] == '\0' || c[0] != s[0])               return i;	}		//should never get here...	return 0;}//operator overloadingbool String::operator == (String s)const{	if (this->first_diff(c) == c.size() && this->first_diff(s) == s.size())	   return true;		return false;}