char *strcpy_(char *strDest, const char *strSrc) { // Error if(strSrc == NULL) return NULL; const char* p = strSrc;//const在?*号左边,指针可以变,所指物不能变! char* q = strDest; p = strSrc; q = strDest; while(*p != '\0') *q++ = *p++; *q = '\0'; return strDest; } //标准答案,简洁明快! char * __cdecl strcpy__(char * dst, const char * src) { char * cp = dst; while( *cp++ = *src++ ) ; /* Copy src over dst */ return( dst ); }