超级简单的c++(新手教程) 摘要:解题思路:连续用两个while循环,第一个是为了不停的获取数字,第二个才是每个数字的具体实现。在第二个while循环中,用n%10不停的取最后一位数字,直到n/10为零的时候,说明取完了。再用sum不…… 题解列表 2024年05月02日 0 点赞 0 评论 111 浏览 评分:0.0
1118Tom数(单个字符while循环求和输出) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;int main(){ char a; int sum = …… 题解列表 2024年06月12日 0 点赞 0 评论 144 浏览 评分:0.0
牢第,包你懂的 摘要:对数据类型不了解的看这里:[C语言 中的 数据类型 超详解](https://blog.csdn.net/weixin_44982036/article/details/108773054 "C语言 …… 题解列表 2024年08月10日 0 点赞 0 评论 114 浏览 评分:0.0
1118: Tom数 C++ 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { long long n; while(cin >>…… 题解列表 2024年08月11日 0 点赞 0 评论 207 浏览 评分:0.0
最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>long f(long a){ long sum=0; while(a) { sum+=a%10; …… 题解列表 2024年12月08日 2 点赞 1 评论 360 浏览 评分:0.0