1055: 二级C语言-进制转换 摘要:对所需转换数不断做对 8 取余数压入向量和本身除以 8 的操作直到这个数等于 0,最后将向量逆序输出即为所求。#include<bits/stdc++.h> using namespace std;…… 题解列表 2021年12月21日 0 点赞 0 评论 178 浏览 评分:0.0
二级C语言-进制转换 摘要:```cpp #include #include typedef struct SNode{ int data; struct SNode *next; }SNode,*Lin…… 题解列表 2022年02月20日 0 点赞 0 评论 230 浏览 评分:0.0
二级C语言-进制转换(数组) 摘要:解题思路:不断%8将值放到数组中,最后逆序输出注意事项:if的取值范围,应该是小于8而不是小于等于8参考代码:#include<stdio.h>int main(){ int a[100],n,…… 题解列表 2022年03月11日 0 点赞 0 评论 286 浏览 评分:0.0
编写题解 1055: 二级C语言-进制转换 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n=0; scanf("%d",&n); printf("%o",n); ret…… 题解列表 2022年03月14日 0 点赞 0 评论 139 浏览 评分:0.0
史上最简单的代码 摘要:解题思路:注意事项:参考代码:#include "stdio.h"int main() { int n; scanf("%d", &n); printf("%o", n);return 0;}…… 题解列表 2022年04月05日 0 点赞 0 评论 160 浏览 评分:0.0
最新手的解法 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include<string.h>int main(void) { int a,q[10],i=0,j; scanf("%d",&a…… 题解列表 2022年04月06日 0 点赞 0 评论 249 浏览 评分:0.0
二级C语言-进制转换(2022年4月9日16:38:16) 摘要:# include int main() { int n; scanf("%d",&n); //输入十进制整数 printf("%o\n",n);//以八进制形式输出,是字母o不…… 题解列表 2022年04月09日 0 点赞 0 评论 266 浏览 评分:0.0
八进制输出 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>#include<iomanip>using namespace std;int main(){…… 题解列表 2022年04月25日 0 点赞 0 评论 168 浏览 评分:0.0
1055 二级C语言转换 摘要:```c #include int main(){ int n; scanf("%d",&n); printf("%o",n); return 0; } ``````c …… 题解列表 2022年05月12日 0 点赞 0 评论 205 浏览 评分:0.0
之前这样有问题,不知道什么问题 摘要:解题思路:注意事项:参考代码:n=int(input())a=1s=0while n!=0: x=n%8 n=n//8 b=a*x a*=10 s=s+bprint(s)…… 题解列表 2022年05月30日 0 点赞 0 评论 176 浏览 评分:0.0