题解 1680: 数据结构-八进制数

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

筛选

十进制转八进制数

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<malloc.h>typedef struct{    int data[100];    int top;}Lnod……

用栈实现八进制转换

```c#include#includetypedefstructStack{intdata[100];inttop;}*Stack,stack;//入栈voidPush(StackS,intn){S->top=0;for(inti=n;i>0;i/=8){S->data[S->top]=i%8;S-
优质题解

Manchester- 数据结构-八进制数

解题思路:①:根据十进制到八进制的转换为:除8,取余,直到被除数为0,所有余数自下而上就是对应八进制②:余数的得到就是一个先进后出的过程,所有用栈存储结果③:栈定义,以及定义栈操作:initialization,push,pop,stackempty④:栈的初始化voidinit(Stacks){(*