1032: [编程入门]自定义函数之字符串连接d题解(肥肠de简单) 摘要:解题思路:giao注意事项:giao参考代码:a=input()b=input()print(f"{a} {b}")…… 题解列表 2024年03月24日 0 点赞 0 评论 469 浏览 评分:0.0
编写题解 1032: [编程入门]自定义函数之字符串连接 摘要:解题思路:gets,puts,strlen()函数注意事项:因为在将b的值赋给a的过程中并非是所有元素都有赋值,并且末尾没有结束符,而puts()输出字符串时要遇到'\0’也就是字符结束符才停…… 题解列表 2024年02月08日 0 点赞 0 评论 838 浏览 评分:8.5
编写题解 1032: [编程入门]自定义函数之字符串连接 摘要:解题思路:可以调用系统函数解决,鄙人附带了strcat功能实现的代码,可以进行参考注意事项:使用strcat时要调用string.h的文件参考代码:#include<stdio.h>#include<…… 题解列表 2024年02月04日 0 点赞 0 评论 468 浏览 评分:0.0
java--study||O.o 摘要:参考代码:import java.util.Scanner; public class Main { public static void main(String[] args) { Sc…… 题解列表 2024年01月30日 0 点赞 0 评论 663 浏览 评分:9.9
三行代码解决字符串连接问题 摘要:解题思路:使用string,cin连续输入两个字符串使用cout连续输出即可注意事项:无参考代码:#include<iostream>using namespace std;void dfs(){ …… 题解列表 2024年01月19日 0 点赞 0 评论 452 浏览 评分:0.0
字符串连接 摘要:解题思路:注意事项:参考代码#include<stdio.h>#include<string.h>int main() { char arr1[100]; gets(arr1); i…… 题解列表 2023年12月17日 0 点赞 0 评论 416 浏览 评分:0.0
c代码记录之自定义函数连接字符串-指针--Mark:strcat函数,用于连接字符串 摘要:代码1:用getchar() #include int main() { char get_char; while((get_char…… 题解列表 2023年12月15日 0 点赞 0 评论 428 浏览 评分:0.0
自定义函数之字符串连接 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void str_cat(char a[],char b[]){ strcat(a,b); …… 题解列表 2023年11月30日 0 点赞 0 评论 360 浏览 评分:0.0
字符串连接 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100]; char b[100]; int…… 题解列表 2023年11月25日 0 点赞 0 评论 1023 浏览 评分:0.0
1032: [编程入门]自定义函数之字符串连接 摘要:解题思路:用字符串函数<string.h>注意事项:需注意两个函数的位置,若主函数在前则须在主函数内声明连接的函数参考代码:#include <stdio.h>#include <string.h>v…… 题解列表 2023年11月19日 0 点赞 0 评论 444 浏览 评分:0.0