int StackEmpty(Sqstack *S) { if(S->top==S->base) return Error; }
void conversion() { Sqstack *S; int n,e,m,k;
initstack(S); scanf("%d",&n); printf("enter the number you want to change:"); scanf("%d",&k);
while(n) {push(S,n%k);
n=n/k; } while(StackEmpty(S)!=0) { m=Pop(S,e); if(m<10) printf("%d",m); else { switch(m) { case 10:printf("A");break; case 11:printf("B");break; case 12:printf("C");break; case 13:printf("D");break; case 14:printf("E");break; case 15:printf("F");break;