------数字分离----- 摘要:解题思路:利用字符数组来接受数据然后顺序打印即可法一用函数法二不用函数感觉比法一还简洁一点若说错了请多多包含注意事项:参考代码://法一:/*题目 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
编写题解 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 评论 134 浏览 评分:0.0
1034: [编程入门]自定义函数之数字分离-简单方法 摘要:解题思路:注意事项:注意使用-%2d(左对齐并间隔两格) 参考代码:#include<stdio.h>#include<math.h>int fun(int a){ int t = 0; for (…… 题解列表 2023年07月16日 0 点赞 0 评论 111 浏览 评分:0.0
1034: [编程入门]自定义函数之数字分离 摘要:解题思路:注意事项:参考代码:#includeint main() { char a[4]; for (int i = 0; i != 4; i++) { a[i] = getchar(); } f…… 题解列表 2023年07月27日 0 点赞 0 评论 184 浏览 评分:0.0
简单明了的函数解法 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h>fan(char a[],int n){int i; for (i …… 题解列表 2023年09月04日 0 点赞 0 评论 150 浏览 评分:0.0
自定义函数之数字分离 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int fun(char a[],char b[]){ int i=0,j=0; whi…… 题解列表 2023年09月16日 0 点赞 0 评论 192 浏览 评分:0.0
自定义函数之数字分离 摘要:解题思路:判断一个数字是m位数,每次除以10,发现每次除的余数正好是该数的倒序,则可用下表为0,大小为m的数组开始储存余数,再逆序输出注意事项:参考代码:#includevoid distract(i…… 题解列表 2023年09月26日 0 点赞 0 评论 154 浏览 评分:0.0
format方法... 摘要:解题思路:注意事项:参考代码:a,b,c,d = map(int,input())print('{} {} {} {}'.format(a,b,c,d))…… 题解列表 2023年10月13日 0 点赞 0 评论 137 浏览 评分:0.0