这算是栈的应该吗?
#include<sdtio.h>void main(){
int a[10];
int n;
int *base;
nt *top;
base=&a[0];
top=base;
scanf("%d",&n)
while(n){
*top=n%8;
n=n/8;
*top++;
}
while(base>=top){
printf("%d",*top);
top--;
}
}
2007-10-25 13:05
2007-10-25 13:18
2007-10-26 13:50