#include <iostream>
using namespace std;
const int StackSize=10;
template<class DataType>
class SeqStack
{
public:
SeqStack();
~SeqStack(){};
void Push(DataType x);
DataType Pop();
void Decimaltor(int num,int r);
private:
DataType data[StackSize];
int top;
};
template<class DataType&
设计算法并写出代码,实现将10进制转换成2进制数。
最新推荐文章于 2024-01-14 01:05:54 发布
