优质题解 数据结构-八进制数 (C++描述,点开有惊喜哦,进制的多种方法的转化,总结好了) 摘要:解题思路:栈的运用,按照题目要求的写栈的功能是先进后出构建一个栈,注意需要头文件<stack>s.push是栈的输入s.top和pop的配合使用是对存到栈里面的东西进行输出string的作用是对8取余…… 题解列表 2018年11月29日 9 点赞 1 评论 1646 浏览 评分:9.9
十进制转八进制数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<malloc.h>typedef struct{ int data[100]; int top;}Lnod…… 题解列表 2024年11月25日 1 点赞 0 评论 239 浏览 评分:9.9
数据结构-八进制数-题解(C语言代码) 摘要:```c #include #include #define MaxSize 100 typedef struct { int data[MaxSize]; int top; }S…… 题解列表 2020年02月29日 0 点赞 0 评论 831 浏览 评分:9.9
C语言思路简单,易懂!!! 理解万岁 (谁的代码有我短,为了通过) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ int n; while (scanf ("%d",&n)!=EOF){ prin…… 题解列表 2023年10月09日 0 点赞 0 评论 399 浏览 评分:9.9
用栈实现八进制转换 摘要:```c #include #include typedef struct Stack { int data[100]; int top; }*Stack,stack; //入栈 …… 题解列表 2023年03月22日 0 点赞 0 评论 512 浏览 评分:9.9
优质题解 Manchester- 数据结构-八进制数 摘要:解题思路:①:根据十进制到八进制的转换为:除8,取余,直到被除数为0,所有余数自下而上就是对应八进制②:余数的得到就是一个先进后出的过程,所有用栈存储结果③:栈定义,以及定义栈操作:initializ…… 题解列表 2018年03月17日 14 点赞 0 评论 2171 浏览 评分:9.5
利用顺序栈完成进制转化 摘要:```c #include #include typedef struct STACK { int* base; int* top; int stacksize; }SqSt…… 题解列表 2022年01月12日 0 点赞 0 评论 413 浏览 评分:7.5
c语言栈八进制转换(记录代码) 摘要:#include#include#define maxsize 100//定义线性栈 typedef struct{ int data[maxsize]; int top;…… 题解列表 2025年03月14日 1 点赞 0 评论 234 浏览 评分:0.0
花落的新手代码(C语言代码) 摘要:解题思路:使用函数sprintf就可以实现进制转换。注意事项:参考代码:#include<stdio.h> #include<ctype.h> #include<string.h> #inclu…… 题解列表 2017年12月30日 2 点赞 0 评论 921 浏览 评分:0.0
十-八进制转换(动态栈、数组实现,作代码记录用) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>typedef struct{ int *data…… 题解列表 2025年02月16日 0 点赞 0 评论 169 浏览 评分:0.0