C语言学习(11)
1 //运用strcat函数 2 #include<stdio.h> 3 #include<string.h> 4 int main(){ 5 char s1[100]="Tianjing,",s2[]="How are you"; 6 strcat(s1,s2); 7 puts(s1); 8 return 0; 9 }
posted on 2018-06-27 18:43 孙悟空son_ku_kong 阅读(112) 评论(0) 编辑 收藏 举报
1 //运用strcat函数 2 #include<stdio.h> 3 #include<string.h> 4 int main(){ 5 char s1[100]="Tianjing,",s2[]="How are you"; 6 strcat(s1,s2); 7 puts(s1); 8 return 0; 9 }
posted on 2018-06-27 18:43 孙悟空son_ku_kong 阅读(112) 评论(0) 编辑 收藏 举报