1034: [编程入门]自定义函数之数字分离(C语言) 摘要:参考代码:#include<stdio.h> int main() { char a[4]; for(int i=0;i<4;i++) { scan…… 题解列表 2022年11月15日 0 点赞 0 评论 163 浏览 评分:0.0
编写题解 1034: [编程入门]自定义函数之数字分离,有比较细节的地方 摘要:解题思路:利用for循环注意事项:直接用input函数不用外面嵌套int,这也是这个题应该注意的地方参考代码:def q():#直接用q带过了 a = input()#直接便利了字符串,而外面有…… 题解列表 2022年11月23日 0 点赞 0 评论 304 浏览 评分:0.0
1034 题解简单易懂 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int seperate(int m,int x,int y,int z,int w){ x=m/1000%10; y=m/100%1…… 题解列表 2022年12月10日 0 点赞 0 评论 134 浏览 评分:0.0
数字分离简单函数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int a;int b,c,d,e;scanf("%d",&a);b=a/1000;e=a%10;d=a/10%1…… 题解列表 2022年12月26日 0 点赞 0 评论 122 浏览 评分:0.0
用字符串自定义函数分离 摘要:解题思路:注意事项:注意'\0'不要漏掉参考代码:#include <stdio.h>#include <string.h>int main(){ char a[5]; gets(a);/…… 题解列表 2023年01月11日 0 点赞 0 评论 147 浏览 评分:0.0
自定义函数之数字分离(so easy) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int num; scanf("%d", &num); int a = num / 1000; int b = …… 题解列表 2023年02月08日 0 点赞 0 评论 145 浏览 评分:0.0
c++题解 1034: [编程入门]自定义函数之数字分离 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int check(int a){ int gewei = a%10; int …… 题解列表 2023年03月15日 0 点赞 0 评论 159 浏览 评分:0.0
------数字分离----- 摘要:解题思路:利用字符数组来接受数据然后顺序打印即可法一用函数法二不用函数感觉比法一还简洁一点若说错了请多多包含注意事项:参考代码://法一:/*题目 1034: [编程入门]自定义函数之数字分离题目描述…… 题解列表 2023年06月08日 0 点赞 0 评论 163 浏览 评分:0.0
自定义函数 摘要:解题思路:利用char类型逐个输出字符注意事项:无返回值的函数,可以明确定义为空类型,即void参考代码:#include <stdio.h> void output(char a[5]){ …… 题解列表 2023年06月21日 0 点赞 0 评论 139 浏览 评分:0.0
1034题: 自定义函数之数字分离 摘要:# 自己写的代码 ```c #include int main(){ char a[5]; gets(a); for(int i=0;i…… 题解列表 2023年07月02日 0 点赞 0 评论 131 浏览 评分:0.0