1048: [编程入门]自定义函数之字符串拷贝 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char str[100]; int n,m; scanf("%d",&n); scanf("%s",str);…… 题解列表 2023年03月28日 0 点赞 0 评论 153 浏览 评分:9.9
c++字符串简单解法 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<algorithm>using namespace std;int main(){ int n,m; string…… 题解列表 2023年10月15日 0 点赞 0 评论 120 浏览 评分:9.9
代码的尽头是优雅 摘要:解题思路: 遍历字符串注意事项:代码索引和现实数字位置序号不一样参考代码:import java.util.Scanner;public class Main { static Scanner …… 题解列表 2023年11月16日 0 点赞 0 评论 126 浏览 评分:9.9
strcpy?不不不,都多余了 摘要:```c #include int main() { int a,b; char s[10000]; scanf("%d%s%d",&a,s,&b); c…… 题解列表 2023年12月20日 0 点赞 0 评论 130 浏览 评分:9.9
java--study||O.o 摘要:参考代码:import java.util.Scanner; public class Main { public static void main(String[] args) …… 题解列表 2024年02月13日 0 点赞 0 评论 252 浏览 评分:9.9
malloc函数的使用 摘要:解题思路:注意事项:注意输入n后直接换行会被scanf吞掉,因此需要加一个getchar(),输入完字符串输入m时同理。参考代码:#include<stdio.h>#include<stdlib.h>…… 题解列表 2024年02月23日 0 点赞 0 评论 163 浏览 评分:9.9
]自定义函数之字符串拷贝 摘要:解题思路:注意事项:参考代码:def kaobei(my_str,m,n): a = [] for i in range(m-1,n): print(my_str[i],en…… 题解列表 2024年06月05日 0 点赞 0 评论 126 浏览 评分:9.9
有一字符串,包含n个字符。写一函数,将此字符串中从第m个字符开始的全部字符复制成为另一个字符串。 摘要:解题思路:输入,遍历,赋值,输出,也可以选择memcpy;注意事项:不要越界参考代码:#include<iostream> #include <cstring> using namespace s…… 题解列表 2024年06月13日 1 点赞 0 评论 253 浏览 评分:9.9
编写题解 1048: [编程入门]自定义函数之字符串拷贝(java代码) 摘要:参考代码:import java.util.Scanner; public class Main { public static void main(String[] args) { …… 题解列表 2024年09月19日 1 点赞 0 评论 214 浏览 评分:9.9
C语言程序设计教程(第三版)课后习题10.7 (C语言代码) 摘要:#include <stdio.h> #define LEN 100 void Copy(char a[], char b[], int n, int m); int main(void) {…… 题解列表 2017年12月14日 90 点赞 11 评论 4502 浏览 评分:9.8