#include char *sPtr; //´æ·Å×Ö·û´®µÄÖ¸Õë s="¹þ¹þ" sPtr = new char[strlen(s)+1]; strncpy(sPtr,s;