用字符串函数处理字符串问题 摘要:解题思路:在string.h中,提供了拼接两段字符串的函数strcat,使用它可以简便处理两段字符串的拼接注意事项:参考代码:#include <stdio.h>#include <…… 题解列表 2026年07月19日 0 点赞 0 评论 22 浏览 评分:0.0
111无需多言 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main() { char s1[20…… 题解列表 2026年04月14日 0 点赞 0 评论 214 浏览 评分:0.0
存储输入法 摘要:解题思路:用一个函数来作为输出字符串的作用注意事项:参考代码:#include <stdio.h>#include <string.h>void str3(char str[1…… 题解列表 2026年04月02日 0 点赞 0 评论 144 浏览 评分:0.0
编写题解 1032: [编程入门]自定义函数之字符串连接 摘要:解题思路:注意事项:scanf后面不加&符号参考代码:#include<stdio.h>#include<string.h>int main(){ &nbs…… 题解列表 2026年03月02日 2 点赞 0 评论 255 浏览 评分:0.0
字符串连接 摘要:解题思路:注意事项:连接的时候可以用数组形式赋值也可以用指针形式赋值,但是其实最后可以加一个长度限制的判断参考代码:#include <stdio.h>#include <strin…… 题解列表 2025年10月29日 1 点赞 0 评论 651 浏览 评分:10.0
一行代码搞定 摘要:解题思路:利用python可以嵌套压缩代码核心两点:一行代码解决参考代码:print(input()+input())…… 题解列表 2025年10月26日 1 点赞 0 评论 385 浏览 评分:10.0
1032:[编程入门]自定义函数之字符串连接 摘要:解题思路:注意事项:要写括号参考代码:#include<bits/stdc++.h>using namespace std;int q(string a,string b){ …… 题解列表 2025年07月24日 2 点赞 1 评论 483 浏览 评分:10.0
在函数内直接相加实现拼接 摘要:解题思路:先定义两个字符串类型的变量依次输入,然后调用函数,在函数内通过相加实现字符串的拼接注意事项:参考代码:#include<bits/stdc++.h>using namespace…… 题解列表 2025年04月09日 1 点赞 0 评论 617 浏览 评分:10.0
编写题解 1032: [编程入门]自定义函数之字符串连接 摘要: #include #include #include #include #include using namespace std;…… 题解列表 2025年04月03日 0 点赞 0 评论 788 浏览 评分:0.0
常规解法---------------------------------------------------------- 摘要:解题思路:注意事项:参考代码:#include<iostream>#include <cstring>using namespace std;const int N = 101…… 题解列表 2025年03月17日 0 点赞 0 评论 570 浏览 评分:0.0