[编程入门]自定义函数之字符串拷贝 题解 摘要: ```c #include #include void fun(char str[],int n,int m){ for(int i=n-1;i…… 题解列表 2024年08月03日 0 点赞 0 评论 308 浏览 评分:0.0
1048: [编程入门]自定义函数之字符串拷贝(python) 摘要:1048: [编程入门]自定义函数之字符串拷贝 从索引`m-1`开始切片即可 ~~~pythjon input() s = input() m = int(input()) print…… 题解列表 2024年10月24日 0 点赞 0 评论 135 浏览 评分:0.0
[编程入门]自定义函数之字符串拷贝 摘要:解题思路:题目根本没要求复制,其实也用不着复制,只需要把指针定位到相应序号后输出即可注意事项:参考代码:#include <stdio.h> #include <stdlib.h> int m…… 题解列表 2024年11月18日 0 点赞 0 评论 193 浏览 评分:0.0
[C语言]字符串拷贝——易懂方法 摘要:解题思路:注意事项:一定要注意字符长度要算上结束符哦!并且要在程序中添加结束字符!参考代码:#include<stdio.h>#include<string.h>int main(){int n,i,…… 题解列表 2024年11月29日 0 点赞 0 评论 342 浏览 评分:0.0
最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a[150]; int i,n,m; scanf("%d",&n); scan…… 题解列表 2024年12月04日 0 点赞 0 评论 540 浏览 评分:0.0