文件名称: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
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。