自定义函数之字符串连接
摘要:#include<stdio.h>
int main(void)
{
char a[100];
char b[100];
char temp[100];
i……
利用数组遍历来实现连接
摘要:#include<stdio.h>int main(){ char a[1000],b[19999]; int i,j=0; &……
常规解法----------------------------------------------------------
摘要:解题思路:注意事项:参考代码:#include<iostream>#include <cstring>using namespace std;const int N = 101……
编写题解 1032: [编程入门]自定义函数之字符串连接
摘要: #include #include #include #include #include using namespace std;……
在函数内直接相加实现拼接
摘要:解题思路:先定义两个字符串类型的变量依次输入,然后调用函数,在函数内通过相加实现字符串的拼接注意事项:参考代码:#include<bits/stdc++.h>using namespace……