自定义函数之数字分离,实现空格输出 摘要:#include<stdio.h>int main(){ char a[100]; int i,j; gets…… 题解列表 2025年01月04日 0 点赞 0 评论 253 浏览 评分:0.0
最普通的数组解法 摘要:解题思路:#include<stdio.h>#include<string.h>int main(){char arr[100];int i=0;scanf("%s&…… 题解列表 2025年01月14日 0 点赞 0 评论 223 浏览 评分:0.0
C语言数字迭代处理,细节处理 摘要:解题思路:获取每位上的数字并输出注意事项:输入超过4位不处理,最后一位后无空格参考代码:#include<stdio.h>int main(){&nbs…… 题解列表 2025年01月26日 1 点赞 0 评论 256 浏览 评分:0.0
C++简单写法-------------------------------------- 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ string s; …… 题解列表 2025年03月21日 0 点赞 0 评论 56 浏览 评分:0.0
C++ : 类和两种访问权限的练习 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std ;class separation{&…… 题解列表 2025年03月26日 0 点赞 0 评论 54 浏览 评分:0.0
1034 数字分离 摘要:解题思路:定义函数,将四位数变成字符串,遍历,打印下来注意事项:参考代码:#include<stdio.h>//将一个四位数以空格分隔void aim(int num){ ch…… 题解列表 2025年03月27日 0 点赞 0 评论 124 浏览 评分:0.0
1034: [编程入门]自定义函数之数字分离 摘要:解题思路:第一种方式就是:1、先算出输入数字有几位 2、然后根据几位去拿到每个个位,并放在数组中,最后输出;第二种方式:需要将int类型转为字符串,继而转为字符数组进行操作;注…… 题解列表 2025年04月17日 1 点赞 0 评论 39 浏览 评分:0.0