1009简单易看题解,并注释 摘要:```#include#includeint main(){ char a[6]; scanf("%s",a); //直接用库函数 int …… 题解列表 2025年01月06日 6 点赞 1 评论 1234 浏览 评分:10.0
题解—涉及 利用string进行对数字的处理 摘要:### # 首先卖个广告,欢迎关注我的github账号 ##### peach99cpp,里面有个库存储了我的做题笔记和源代码,欢迎加入! #### 题解——关于string解决数字处理问题的…… 题解列表 2021年04月01日 0 点赞 3 评论 557 浏览 评分:9.9
用while使输入输出简便化 摘要:参考代码:#include"iostream" int main() { char list[5],l=0; while(std::cin>>list[l])l++; std::cou…… 题解列表 2022年03月27日 0 点赞 0 评论 620 浏览 评分:9.9
此题运用了stl中的vector容器 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ vector<int>v1; int num; cin>>n…… 题解列表 2024年01月20日 0 点赞 0 评论 369 浏览 评分:9.9
利用递归求解数字的处理与判断 摘要:解题思路:首先须知,在c++中:1、当一个整数/10时,不会产生小数。即int/int != float。例如:123/10=12,而不是12.32、当一个整数%10时,产生的数是该数的末位。即:12…… 题解列表 2024年01月17日 0 点赞 0 评论 386 浏览 评分:9.9
正确的递归应该是啥样的?。。。 摘要:参考代码:#include<iostream> using namespace std; void print1(int a); void print2(int a); int main(…… 题解列表 2024年01月01日 0 点赞 0 评论 600 浏览 评分:9.9
数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int x,i,k=0,g; cin>>x; g=x; fo…… 题解列表 2022年03月25日 0 点赞 0 评论 420 浏览 评分:9.9
题解 1009: [编程入门]数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main() { double a; int e; double …… 题解列表 2021年03月17日 0 点赞 0 评论 984 浏览 评分:9.9
[编程入门]数字的处理与判断 (c++) 摘要:参考代码:#include<iostream>using namespace std;int main(){ int arr[5]; int n; //输入的数 int number = 0;//记录…… 题解列表 2021年03月24日 0 点赞 0 评论 895 浏览 评分:9.9
数字的处理与判断(c++) 摘要:读前注意: 本代码采用C++语言来写,但是并不影响许多只学过C语言的编程新手的阅读,本来C++与C语言基础写法算是大同小异吧,另外,每个要求都已经封装成函数的形式,这样对于读者来说也许会更清晰,…… 题解列表 2022年07月12日 0 点赞 4 评论 936 浏览 评分:9.9