1034: [编程入门]自定义函数之数字分离
摘要:解题思路:注意事项:参考代码:#includeint main() { char a[4]; for (int i = 0; i != 4; i++) { a[i] = getchar(); } f……
1034: [编程入门]自定义函数之数字分离-简单方法
摘要:解题思路:注意事项:注意使用-%2d(左对齐并间隔两格) 参考代码:#include<stdio.h>#include<math.h>int fun(int a){ int t = 0; for (……
编写题解 1034: [编程入门]自定义函数之数字分离
摘要:解题思路:注意事项:参考代码:#include <stdio.h>void fun (int n){ int i; int cnt[10]; for(i=0;i<4;i++){ cnt[3-i]=n……
[编程入门]自定义函数之数字分离(超级简单版只需十一步)
摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int a, b, c, d, e; printf("请输入一个四位数的数字:"); ……
1034题: 自定义函数之数字分离
摘要:# 自己写的代码
```c
#include
int main(){
char a[5];
gets(a);
for(int i=0;i……
------数字分离-----
摘要:解题思路:利用字符数组来接受数据然后顺序打印即可法一用函数法二不用函数感觉比法一还简洁一点若说错了请多多包含注意事项:参考代码://法一:/*题目 1034: [编程入门]自定义函数之数字分离题目描述……
c++题解 1034: [编程入门]自定义函数之数字分离
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int check(int a){ int gewei = a%10; int ……
自定义函数之数字分离
摘要:解题思路:注意事项:参考代码:#include <stdio.h>void fun(char a[]) ;int main(){ char a[4]; gets(a); fun(a); ……