没用strcat,用的gets和puts, 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void lianj(char f1[],char f2[]){ int k,i,p; …… 题解列表 2024年11月15日 0 点赞 0 评论 282 浏览 评分:9.9
简单算法,易理解 摘要:解题思路:a和b分别接收字符串,用加号拼接注意事项:参考代码:a=input()b=input()print(a+b)…… 题解列表 2024年11月14日 0 点赞 0 评论 321 浏览 评分:0.0
1032: [编程入门]自定义函数之字符串连接(python) 摘要:#### 无需多言 ~~~python def main(): print(input() + input()) if __name__ == '__main__': …… 题解列表 2024年10月24日 0 点赞 0 评论 282 浏览 评分:9.9
可以判断空格不输出 摘要:解题思路:注意事项:参考代码:#include<string.h>int main(){ int i,a,b; char str1[100],str2[100]; gets(str1); get…… 题解列表 2024年10月18日 0 点赞 0 评论 292 浏览 评分:9.9
编写题解 1032: [编程入门]自定义函数之字符串连接 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void connect(char a[],char b[]){ int i,j=0; while(a[i]!=0)…… 题解列表 2024年09月20日 0 点赞 0 评论 305 浏览 评分:9.9
巧用string函数,轻松解决 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include <string.h>int main(){ char a[100]; char b[100]; scanf…… 题解列表 2024年09月10日 0 点赞 0 评论 382 浏览 评分:0.0
编写题解 1032: [编程入门]自定义函数之字符串连接 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(char c) {while((c=getchar())!= EOF){if(c != '\n'…… 题解列表 2024年06月11日 0 点赞 0 评论 476 浏览 评分:0.0
自定义函数之字符串连接 摘要:解题思路:注意事项:参考代码:def lmjp(a,b): print(a+b)a = input()b = input()lmjp(a,b)…… 题解列表 2024年06月03日 0 点赞 0 评论 202 浏览 评分:0.0
1032字符串连接(strcat函数的使用) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<stdlib.h>int main(){ char a[100],b[100]; …… 题解列表 2024年05月14日 0 点赞 0 评论 129 浏览 评分:0.0
自定义函数之字符串连接-简短容易理解 摘要:解题思路:把一个字符串拼接到另一个字符串的末尾注意事项:strcat()函数可在C语言中用于字符串拼接,但如果第一个字符串的空间无法容纳第二个字符串,那么行为未定义,所以str1的长度要足够长。同时s…… 题解列表 2024年05月11日 0 点赞 0 评论 337 浏览 评分:0.0