1034: [编程入门]自定义函数之数字分离 摘要:解题思路:注意事项:参考代码:#includeint main() { char a[4]; for (int i = 0; i != 4; i++) { a[i] = getchar(); } f…… 题解列表 2023年07月27日 0 点赞 0 评论 158 浏览 评分:0.0
1034: [编程入门]自定义函数之数字分离-简单方法 摘要:解题思路:注意事项:注意使用-%2d(左对齐并间隔两格) 参考代码:#include<stdio.h>#include<math.h>int fun(int a){ int t = 0; for (…… 题解列表 2023年07月16日 0 点赞 0 评论 95 浏览 评分:0.0
编写题解 1034: [编程入门]自定义函数之数字分离 摘要:解题思路:注意事项:参考代码:#include <stdio.h>void fun (int n){ int i; int cnt[10]; for(i=0;i<4;i++){ cnt[3-i]=n…… 题解列表 2023年07月12日 0 点赞 0 评论 110 浏览 评分:0.0
[编程入门]自定义函数之数字分离(超级简单版只需十一步) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int a, b, c, d, e; printf("请输入一个四位数的数字:"); …… 题解列表 2023年07月03日 0 点赞 0 评论 122 浏览 评分:9.9
1034题: 自定义函数之数字分离 摘要:# 自己写的代码 ```c #include int main(){ char a[5]; gets(a); for(int i=0;i…… 题解列表 2023年07月02日 0 点赞 0 评论 108 浏览 评分:0.0
自定义函数 摘要:解题思路:利用char类型逐个输出字符注意事项:无返回值的函数,可以明确定义为空类型,即void参考代码:#include <stdio.h> void output(char a[5]){ …… 题解列表 2023年06月21日 0 点赞 0 评论 115 浏览 评分:0.0
------数字分离----- 摘要:解题思路:利用字符数组来接受数据然后顺序打印即可法一用函数法二不用函数感觉比法一还简洁一点若说错了请多多包含注意事项:参考代码://法一:/*题目 1034: [编程入门]自定义函数之数字分离题目描述…… 题解列表 2023年06月08日 0 点赞 0 评论 138 浏览 评分: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 评论 133 浏览 评分:0.0
自定义函数之数字分离 摘要:解题思路:注意事项:参考代码:#include <stdio.h>void fun(char a[]) ;int main(){ char a[4]; gets(a); fun(a); …… 题解列表 2023年03月06日 0 点赞 0 评论 158 浏览 评分:9.9
自定义函数之数字分离(这样也行) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char arr[5]; gets(arr); int n = strlen…… 题解列表 2023年02月09日 0 点赞 0 评论 113 浏览 评分:9.9