题解 1747: 字符串链接

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

1747: 字符串链接

摘要:import java.util.Scanner;public class r {    public static void main(String[] args) {        Scanner……

Manchester-【字符串链接】

####解题思路:设字符串s1,s2,s3令s3=s1+s2把s1和s2中的字符分两次赋值到s3中最后在s3末尾加上字符串结束符####参考代码:```c#include#includeintmain(){chars1[21],s2[21],

字符串链接-题解(C语言代码)

```cpp#include#include#includeusingnamespacestd;char*MyStrcat(chardstStr[],charsrcStr[]){intsrcStr_len=strlen(srcStr);intdstStr_len=strlen(dstStr);char

指针字符串链接-题解(C语言代码)

````c//不用strcat函数,自己编写一个字符串连接函数MyStrcat(chardstStr[],charsrcStr[]),//注意要单独编成函数,提交的时候提交全部的程序,包括main。//输入包含多组数据,每组测试数据由两个待连接字符串组成,

字符串链接-题解(C语言代码)

此题有两个注意点,1:有多组测试数据,但不知有多少组,所以啥时候可以让判断机不输出超限就可以了。2:字符串用函数链接以后怎么返回主函数时返回什么类型需要注意,代码如下:```c#includechar*MyStrcat(char*dstStr,

字符串链接 (C++代码)

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main(){ string str1; string……