题解 1055: 二级C语言-进制转换

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

1055: 二级C语言-进制转换

摘要:对所需转换数不断做对 8 取余数压入向量和本身除以 8 的操作直到这个数等于 0,最后将向量逆序输出即为所求。#include<bits/stdc++.h> using namespace std;……

二级C语言-进制转换

摘要:```cpp #include #include typedef struct SNode{ int data; struct SNode *next; }SNode,*Lin……

二级C语言-进制转换(数组)

摘要:解题思路:不断%8将值放到数组中,最后逆序输出注意事项:if的取值范围,应该是小于8而不是小于等于8参考代码:#include<stdio.h>int main(){    int a[100],n,……

史上最简单的代码

摘要:解题思路:注意事项:参考代码:#include "stdio.h"int main() { int n; scanf("%d", &n); printf("%o", n);return 0;}……

最新手的解法

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include<string.h>int main(void) { int a,q[10],i=0,j; scanf("%d",&a……

八进制输出

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>#include<iomanip>using namespace std;int main(){……

1055 二级C语言转换

摘要:```c #include int main(){ int n; scanf("%d",&n); printf("%o",n); return 0; } ``````c ……