蔡諝的窝

博客园 首页 新随笔 联系 订阅 管理

//把str1放到str2后,即str2+str1

char str1[10]="world!";
char str2[20]="Hello ";
strcpy(str2+strlen(str2),str1);
printf("%s",str2);

//输出将是:Hello world!

posted on 2010-12-29 23:07  蔡諝  阅读(6389)  评论(0编辑  收藏  举报