解题思路:
gets()输入
strcat()连接
puts()输出即可
注意事项:
记得头文件加上#include <string.h>
参考代码:
#include <stdio.h> #include <string.h> int main() { char a[100],b[100]; gets(a); gets(b); strcat(a,b); puts(a); return 0; }
0.0分
0 人评分
点我有惊喜!你懂得!浏览:1992 |
点我有惊喜!你懂得!浏览:1113 |
A+B for Input-Output Practice (IV) (C语言代码)浏览:532 |
C语言训练-求1+2!+3!+...+N!的和 (C语言代码)万恶的long long浏览:887 |
淘淘的名单 (C语言代码)浏览:1119 |
C语言程序设计教程(第三版)课后习题8.9 (C语言代码)浏览:861 |
C语言程序设计教程(第三版)课后习题6.1 (C语言代码)浏览:565 |
C语言程序设计教程(第三版)课后习题3.7 (C语言代码)浏览:575 |
sizeof的大作用 (C语言代码)浏览:1513 |
Hello, world! (C语言代码)浏览:725 |