不向自定义数组的大小 摘要:#include<stdio.h> #include<string.h> #include<malloc.h> int main(){ int n,m; int status=s…… 题解列表 2022年01月19日 0 点赞 0 评论 301 浏览 评分:0.0
利用指针进行操作 摘要:解题思路:先定义一个空字符数组,将指针指向第m个字符,依次将字符复制到空数组中注意事项:参考代码:#include <stdio.h>#include <string.h>int n,m;int ma…… 题解列表 2022年01月12日 0 点赞 0 评论 396 浏览 评分:0.0
自定义函数之字符串拷贝(JAVA) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args…… 题解列表 2022年01月09日 0 点赞 0 评论 402 浏览 评分:0.0
1048: [编程入门]自定义函数之字符串拷贝 摘要:#include<bits/stdc++.h> using namespace std; int main() { int length; cin >> length…… 题解列表 2021年12月21日 0 点赞 0 评论 309 浏览 评分:0.0
1048: [编程入门]自定义函数之字符串拷贝 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdio.h>int main(){ int a,b,i; char arr[100]; scan…… 题解列表 2021年12月20日 0 点赞 0 评论 473 浏览 评分:0.0
1048: [编程入门]自定义函数之字符串拷贝(最简)(java代码) 摘要:解题思路: 拿到字符串之后直接截取从 m-1 到 n。注意事项: 字符串截取 传入两个参数:substring(int beginIndex, int en…… 题解列表 2021年12月19日 0 点赞 1 评论 588 浏览 评分:9.9
函数之字符串拷贝-C语言 摘要:解题思路:按顺序输入题目要求:数字n 一行字符串 数字m;那数字可以用scanf()函数输入,一串字符串的输入可以用gets()或者scanf()和for循环结合来实现,但是当在scanf()后面…… 题解列表 2021年12月18日 0 点赞 0 评论 435 浏览 评分:0.0
简单,初学者 摘要:解题思路:写一个与输入的数组a相反的数组b;连接a数组与b数组。注意事项:此题默认没有空格。如果想输入带空格的数组,把scanf("%s",a);改为gets(a);并用c++ 或者 用for…… 题解列表 2021年12月07日 0 点赞 0 评论 421 浏览 评分:0.0
[编程入门]自定义函数之字符串拷贝-C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,m,i,j=0; char a[100],b[100]; scanf("%d",&n); getch…… 题解列表 2021年11月30日 0 点赞 0 评论 835 浏览 评分:0.0
Java数组输入输出-错误频发 摘要:注意事项:具本人目前了解,Java语言无法直接输入char型数组,这时需输入String字符串,再用charAt()函数将String型字符串转换为char型数组。在此题目中,本人出现多次错误,首先时…… 题解列表 2021年11月15日 0 点赞 0 评论 842 浏览 评分:9.9