1048: [编程入门]自定义函数之字符串拷贝 摘要:#include<bits/stdc++.h> using namespace std; int main() { int length; cin >> length…… 题解列表 2021年12月21日 0 点赞 0 评论 139 浏览 评分:0.0
自定义函数之字符串拷贝(JAVA) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args…… 题解列表 2022年01月09日 0 点赞 0 评论 155 浏览 评分:0.0
利用指针进行操作 摘要:解题思路:先定义一个空字符数组,将指针指向第m个字符,依次将字符复制到空数组中注意事项:参考代码:#include <stdio.h>#include <string.h>int n,m;int ma…… 题解列表 2022年01月12日 0 点赞 0 评论 168 浏览 评分:0.0
不向自定义数组的大小 摘要:#include<stdio.h> #include<string.h> #include<malloc.h> int main(){ int n,m; int status=s…… 题解列表 2022年01月19日 0 点赞 0 评论 108 浏览 评分:0.0
编写题解 1048: [编程入门]自定义函数之字符串拷贝 摘要:随便写的一个自认为简单的办法。#include<stdio.h>#include<string.h>int main(){ int n,m,i,j=0; scanf("%d\n",&n);…… 题解列表 2022年01月30日 0 点赞 0 评论 106 浏览 评分:0.0
简单易理解【C语言】 摘要: # 题目大意: ###### 输入n,输入一个长度为 n 的字符串,输入需要开始输出的位置 m ###### 输出该字符串从 m-1 下标开始到结束的子串 这个位置是下标加1后的结果 …… 题解列表 2022年02月10日 0 点赞 0 评论 190 浏览 评分:0.0
编写题解 1048: [编程入门]自定义函数之字符串拷贝--解题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<iostream>#include<string.h>using namespace std;int main(){ …… 题解列表 2022年03月08日 0 点赞 0 评论 364 浏览 评分:0.0
(简单易懂)自定义函数之字符串拷贝 摘要:注意事项:getchar()是读入函数的一种。它从标准输入里读取下一个字符,相当于getc(stdin)。返回类型为int型,为用户输入的ASCII码或EOF。getchar有一个int型的返回值。当…… 题解列表 2022年03月11日 0 点赞 0 评论 265 浏览 评分:0.0
字符串拷贝 摘要: #include #include #define Max 1000 char * Copy(char A[Max],char B[Max] ,i…… 题解列表 2022年05月08日 0 点赞 0 评论 229 浏览 评分:0.0
1048: [编程入门]自定义函数之字符串拷贝 摘要:import java.io.*; /** * 直接用 String 类自带的 substring 方法,注意传进去的数是 m - 1。 */ public class Main …… 题解列表 2022年05月14日 0 点赞 0 评论 151 浏览 评分:0.0