算法思路: (1) 读入N进制的数,先将其转换为10进制 (2)然后再把十进制转换为M进制. (3)要用到的数据结构,栈,队列 代码如下(N,M必须小于10.) queue.h #ifndef __queue__h#define __queue__h#define MAX 100class queue#endif stack.h #ifndef __stack__h#define __stack__h#define MAX 100class stack#endif 主程序: #include "queue.h"#include "stack.h"#include<stdio.h>int main()} 相关文章: 2021-05-26 2022-12-23 2021-11-20 2021-10-01 2022-02-04 2022-12-23 2021-12-01 2021-12-14