本文共 231 字,大约阅读时间需要 1 分钟。
#include#include #include void main(){ char s2[10] = "abcdf\0fg"; char s1[80]; for(int i = 0;s2[i] != '\0';i++) s1[i] = s2[i]; s1[i] = '\0'; for(int j = 0;j <= i;j++) printf("%c",s1[j]); printf("\n");}
转载地址:http://stiq.baihongyu.com/