[编程入门]自定义函数之字符串拷贝-题解(Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] ar…… 题解列表 2021年02月14日 0 点赞 0 评论 147 浏览 评分:0.0
1048: [编程入门]自定义函数之字符串拷贝 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define LEN 100int main(){ char str[LEN]={'\0'},result[LEN]…… 题解列表 2021年03月01日 0 点赞 0 评论 178 浏览 评分:0.0
题解 1048: [编程入门]自定义函数之字符串拷贝 摘要:参考代码:#include<stdio.h>#include<stdlib.h>#include<string.h>void copy(char str1[],char str2[],int n,in…… 题解列表 2021年03月20日 0 点赞 0 评论 198 浏览 评分:0.0
1048: [编程入门]自定义函数之字符串拷贝 摘要:解题思路:注意事项:getchar();//去回车;输入方式学习参考代码:int main(){ int n,m,i; char n1[100]; scanf("%d",&n); getcha…… 题解列表 2021年08月02日 0 点赞 0 评论 223 浏览 评分:0.0
题解 1048 指针偏移解法(C语言) 摘要:解题思路: 1,定义整型变量m,n,还有str字符串并获取数据 2,定义char类型的指针p1,指向str首地址   题解列表 2021年10月01日 0 点赞 0 评论 368 浏览 评分:0.0
1048: [编程入门]自定义函数之字符串拷贝-题解(python) 摘要:解题思路:索引注意事项:参考代码:a = int(input())b = input()c = int(input())print(b[c-1::])…… 题解列表 2021年10月16日 0 点赞 0 评论 229 浏览 评分:0.0
函数加指针 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include <string.h>#define N 20int main(){ int n, i, lo, m, k; …… 题解列表 2021年11月03日 0 点赞 0 评论 220 浏览 评分:0.0
用字符切片来解决 摘要:解题思路:注意事项:参考代码:n = int(input())x = str(input())m = int(input())print(x[m-1:])…… 题解列表 2021年11月10日 0 点赞 0 评论 213 浏览 评分: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 评论 469 浏览 评分:0.0
简单,初学者 摘要:解题思路:写一个与输入的数组a相反的数组b;连接a数组与b数组。注意事项:此题默认没有空格。如果想输入带空格的数组,把scanf("%s",a);改为gets(a);并用c++ 或者 用for…… 题解列表 2021年12月07日 0 点赞 0 评论 204 浏览 评分:0.0