文件名称: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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.