1055: 二级C语言-进制转换 摘要:解题思路:直接取余。注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { int a,b[1000],…… 题解列表 2022年06月03日 0 点赞 0 评论 289 浏览 评分:9.9
八进制输出 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>#include<iomanip>using namespace std;int main(){…… 题解列表 2022年04月25日 0 点赞 0 评论 168 浏览 评分:0.0
1055: 二级C语言-进制转换 摘要:解题思路:十进制转n进制的计算方法:每次除n取余,一直除到0为止,余数从后往前排列就是n进制的表示。注意事项:memset()的头文件,每次都要吃一个编译错误才想起来加。参考代码:// 题目 1055…… 题解列表 2022年03月14日 0 点赞 0 评论 681 浏览 评分:9.9
仅用pow函数进行进制转换 摘要:解题思路:注意事项:参考代码:#include#includeusing namespace std;int main(){ int i, j = 0, n, a[10] = { 0 }; cin >…… 题解列表 2022年03月13日 0 点赞 0 评论 530 浏览 评分:9.9
二级C语言-进制转换-(C++代码) 摘要:#include<iostream> #include <cmath> using namespace std; int main() { int a, b, see = 0, i …… 题解列表 2022年03月05日 0 点赞 0 评论 358 浏览 评分:6.0
二级C语言-进制转换 摘要:```cpp #include #include typedef struct SNode{ int data; struct SNode *next; }SNode,*Lin…… 题解列表 2022年02月20日 0 点赞 0 评论 230 浏览 评分:0.0
1055: 二级C语言-进制转换 摘要:对所需转换数不断做对 8 取余数压入向量和本身除以 8 的操作直到这个数等于 0,最后将向量逆序输出即为所求。#include<bits/stdc++.h> using namespace std;…… 题解列表 2021年12月21日 0 点赞 0 评论 178 浏览 评分:0.0
进制转换:十进制转八进制 摘要:解题思路:输入一个十进制整数,对其进行除8取余,并保留余数,最后逆序输出。注意事项:参考代码:#include<iostream> using namespace std; int main() …… 题解列表 2021年09月24日 0 点赞 0 评论 458 浏览 评分:9.9
题解 1055: 二级C语言-进制转换 摘要:```cpp #include using namespace std; int main() { int num; //10进制数字 int m,n; int …… 题解列表 2021年03月19日 0 点赞 0 评论 335 浏览 评分:7.0
二级C语言-进制转换-STL栈题解(C++代码) 摘要:解题思路:STL算法利用栈先进后出的特点注意事项:栈输出时先s.top()再s.pop()因为s.pop()无返回值参考代码:#include <bits/stdc++.h> using names…… 题解列表 2021年02月05日 0 点赞 1 评论 458 浏览 评分:9.5