myString::myString(const myString& x){ length = strlen(x.s); s = new char[length+1]; strcpy(s, x.s); }
/* myString.h 内部 */ void changeS(int i, char c){ if(i<length){ s[i] = c; } }