文件名称:trans
介绍说明--下载内容均来自于网络,请自行研究使用
.把十进制整数转换为2至9之间的任一进制数输出。(利用堆栈)
提示:void transform(long num,int r)
//把一个长整型数num转换为一个r进制数输出。
转换方法是逐次除基数r取余法。输出时需要反向输出得到的余数,因此需要用到堆栈。-. To convert a decimal integer between 2 to 9 for a hexadecimal number of any output. (Using stack) Tip: void transform (long num, int r)// num to a long integer is converted to a binary number of r output. Conversion method is to take over successive addition to the base r method. Output when the remainder received the reverse output, so need to use the stack.
提示:void transform(long num,int r)
//把一个长整型数num转换为一个r进制数输出。
转换方法是逐次除基数r取余法。输出时需要反向输出得到的余数,因此需要用到堆栈。-. To convert a decimal integer between 2 to 9 for a hexadecimal number of any output. (Using stack) Tip: void transform (long num, int r)// num to a long integer is converted to a binary number of r output. Conversion method is to take over successive addition to the base r method. Output when the remainder received the reverse output, so need to use the stack.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
trans.cpp