十进制转换为二进制 十进制转换为八进制 #include #include #define stacksize 100 typedef struct { int data[100]; int top; }stack; void initstack (stack *s){s->top=0;} void push (stack *s,int x) { if(s->top>=stacksize) printf("stack overflow!\n"); else { s->data[s->t