C++代码 for循环 求余 整除 数组保存每位数值 逆序输出 摘要:解题思路:for循环 求余 整除 数组保存每位数值 逆序输出注意事项:暂时不明参考代码:#include<iostream>using namespace std;int main(){ int…… 题解列表 2021年12月28日 0 点赞 0 评论 450 浏览 评分:0.0
用最基础的知识解决这道题 摘要:解题思路:用最基础的方法来求每一位的数字是什么,依次输出就可以了参考代码:#include<iostream>using namespace std;int main(){ int n,a,b,c,d…… 题解列表 2021年11月10日 0 点赞 0 评论 686 浏览 评分:9.9
编写题解 1034: [编程入门]自定义函数之数字分离 AC代码 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ char letter; while (cin >> le…… 题解列表 2021年08月18日 0 点赞 0 评论 385 浏览 评分:9.9
自定义函数之数字分离 摘要:解题思路:输入一串字符,逐个输出注意事项:循环语句参考代码:#include<iostream>#include<string>using namespace std;int main(){ s…… 题解列表 2021年06月23日 0 点赞 0 评论 649 浏览 评分:8.4
一看就会 新思路 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <string>using namespace std;int main(){ string a; cin>>a;…… 题解列表 2021年05月16日 0 点赞 0 评论 548 浏览 评分:6.0
[编程入门]自定义函数之数字分离-题解(C++代码) 摘要:解题思路:字符串+指针传参 注意事项: 参考代码: ```cpp #include using namespace std; char s[10]; void fun(char …… 题解列表 2021年02月04日 0 点赞 0 评论 160 浏览 评分:0.0
[编程入门]自定义函数之数字分离-题解(C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;void add(string num){ for (int i = 0;i < num.le…… 题解列表 2021年01月25日 0 点赞 0 评论 279 浏览 评分:0.0
[编程入门]自定义函数之数字分离-题解(C++代码) 摘要: 思路:先输入一个数,然后求出各个位数,在加上空格输出即可。 四位数各位的求法: 1、个位,直接对10取余;(ge=a%10) 2、十位,先对10取整得到前三位数,再对10取余就得到十位;(s…… 题解列表 2020年04月05日 0 点赞 0 评论 812 浏览 评分:8.4
[编程入门]自定义函数之数字分离-题解(C++代码) 摘要: ```cpp #include using namespace std; int main() { string a; cin>>a; for(int i=0;i…… 题解列表 2020年02月09日 0 点赞 1 评论 1192 浏览 评分:9.9
[编程入门]自定义函数之数字分离-题解(C++代码) 摘要:很简单,10行搞定 #include using namespace std; int main() { char a[4]; cin…… 题解列表 2020年01月22日 0 点赞 0 评论 564 浏览 评分:8.5