C++中的几个技巧,使操作更简洁、方便//implementation:inlineMyString::MyString(constchar*pms){if(pms){data=newchar[strlen(pms)+1];strcpy(data,pms);}else{data=newchar[1];data[0]='\0';}}