数据结构-八进制数 (C++代码) 摘要:解题思路:模拟进制转换过程即可注意事项:正序存,倒序输出参考代码:#include <iostream> using namespace std; int main() { int a[10…… 题解列表 2019年02月10日 0 点赞 0 评论 1054 浏览 评分:0.0
使用%o直接输出八进制数 摘要:解题思路:在c语言里%o能直接输出八进制数注意事项:需要注意题目没有说明输入数的数目,在while循环中以EOF作为文件结束标志参考代码:#include <stdio.h>int mai…… 题解列表 2025年11月24日 0 点赞 0 评论 145 浏览 评分:0.0
数据结构-八进制数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>#include<iostream>#include<algorithm>#include<string>#include<…… 题解列表 2018年10月22日 1 点赞 0 评论 1394 浏览 评分:0.0
数据结构-八进制数 (C++代码) 摘要:解题思路:使用cout输出八进制格式直接输出注意事项:参考代码:#include <iostream> using namespace std; int main () { int n; …… 题解列表 2018年09月06日 0 点赞 0 评论 1381 浏览 评分:0.0
花落的新手代码(C语言代码) 摘要:解题思路:使用函数sprintf就可以实现进制转换。注意事项:参考代码:#include<stdio.h> #include<ctype.h> #include<string.h> #inclu…… 题解列表 2017年12月30日 2 点赞 0 评论 1133 浏览 评分:0.0
利用顺序栈完成进制转化 摘要:```c #include #include typedef struct STACK { int* base; int* top; int stacksize; }SqSt…… 题解列表 2022年01月12日 0 点赞 0 评论 547 浏览 评分:7.5
优质题解 Manchester- 数据结构-八进制数 摘要:解题思路:①:根据十进制到八进制的转换为:除8,取余,直到被除数为0,所有余数自下而上就是对应八进制②:余数的得到就是一个先进后出的过程,所有用栈存储结果③:栈定义,以及定义栈操作:initializ…… 题解列表 2018年03月17日 14 点赞 0 评论 2394 浏览 评分:9.5
C语言思路简单,易懂!!! 理解万岁 (谁的代码有我短,为了通过) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ int n; while (scanf ("%d",&n)!=EOF){ prin…… 题解列表 2023年10月09日 0 点赞 0 评论 514 浏览 评分:9.9
用栈实现八进制转换 摘要:```c #include #include typedef struct Stack { int data[100]; int top; }*Stack,stack; //入栈 …… 题解列表 2023年03月22日 0 点赞 0 评论 626 浏览 评分:9.9
十进制转八进制数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<malloc.h>typedef struct{ int data[100]; int top;}Lnod…… 题解列表 2024年11月25日 1 点赞 0 评论 364 浏览 评分:9.9