(【C++】数组)数字的处理与判断——一种思路 摘要:**以下是我的代码** ```cpp #include using namespace std; int main() { int num,wei; cin>>num; if(n…… 题解列表 2022年10月16日 0 点赞 0 评论 268 浏览 评分:0.0
编写题解 1009: [编程入门]数字的处理与判断【C++】 摘要:解题思路:这道题用数组做会方便一点。如果不想用数组做,就需要像下面这么麻烦。注意事项:建议还是学习用数组做参考代码:#include<iostream>using namespace std;int …… 题解列表 2021年04月01日 0 点赞 0 评论 252 浏览 评分:0.0
[编程入门]数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string a; cin >> a; cout <<…… 题解列表 2021年04月12日 0 点赞 0 评论 375 浏览 评分:0.0
c++处理,利用do-while循环解决 摘要:解题思路:(1)先想好怎么计算出位数?利用do-while循环指令,将输入的数分别除以十,得到余数和商,判断商是否为0;不是0则继续循环; do { b[i] = a % 10; a…… 题解列表 2021年12月28日 0 点赞 0 评论 683 浏览 评分:0.0
C++ 利用string创建str对象 摘要:解题思路:利用c++ string 创建str对象 类似于字符数组注意事项:第二行末尾没有空格参考代码:/**********************************************…… 题解列表 2022年02月10日 0 点赞 0 评论 452 浏览 评分:0.0
编写题解 1009: [编程入门]数字的处理与判断--解题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<iostream>using namespace std;int main (){ long int a,tem…… 题解列表 2022年03月04日 0 点赞 0 评论 209 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <cstdio>#include <algorithm>using namespace std;int main(){ int x; sca…… 题解列表 2017年07月26日 0 点赞 0 评论 946 浏览 评分:0.0
[编程入门]数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;string s;int main(){ cin>>s; cout<<s.si…… 题解列表 2022年05月07日 0 点赞 0 评论 206 浏览 评分:0.0
编写题解 1009: [编程入门]数字的处理与判断 摘要:#include<iostream> using namespace std; int main() { int num[5]; //定义一个有 5 个元素的数组 int …… 题解列表 2022年05月07日 0 点赞 0 评论 215 浏览 评分:0.0
数字的处理与判断 题解(c++字符串超简单) 摘要:解题思路:这题就纯属拆分,但也可以用字符串,我在这里只展示字符串的写法。注意:比赛时建议用拆分数字,按题目输入要求。注意事项:无。参考代码:#include<bits/stdc++.h>using n…… 题解列表 2022年05月08日 0 点赞 0 评论 216 浏览 评分:0.0