字符串以'\0'结束
char str[11],str1[11]; for(int i=0;i<10;i++){ str1[i]='a'; } str1[10]='\0'; strcpy_s(str,str1);