我应该创建两个称为 input1 和 input2 的 char 数组,每个数组可以容纳 1000 个字符,一个称为 input 的 char 数组可以容纳 2000 个字符。使用gets 函数从用户那里读取两个不同的句子并将其存储在变量input1 和input2 中。连接 input1 和 input2 并将结果放在输入变量中。
这是我的代码
main() {
char input;
get(input1);
get(input2);
input = input1 + input2;
}
char a(string result){
char input1[1000][1000];
printf("please enter the something\n");
scanf("%s", input1);
return input1;
}
char b(string result){
char input2[1000][1000];
printf("please enter the something\n");
scanf("%s", input2);
return input2;
}