说明: 用C写的 int conversion(int N,int r) { PSeqStack S; int x; if(!r) { printf("error!"); return 0; } S=Init_SeqStack(); if(!S) { printf("error!"); return 0; } while(N) { Push_SeqStack(S,N%r); N=N/r; } while(!Empty_SeqStack(S)) { Pop_SeqStack(S,&x); printf(
<cjt2964> 上传 | 大小:1kb