文件名称:JinZhiZhuanHuan
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:34.26kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
任意进制数的转换。
设计思路:求n整除d的余数,就能得到n的d进制数的最低位数字,重复上述步骤,直至n为0,一次得到n的d进制数表示的最低位至最高为数字。由各位数字取出相应的字符,就能得到n的d进制的字符。
主函数是用于测试trans函数,要求输入一个待转换的正整数,接着调用trans函数进行转换,并输出改正知识的2-16进制数转换结果。-Arbitrary hexadecimal number conversion. Design: n divisible by d for the remainder, we can get n the d-band minimum-digit number, repeat the above steps until n is 0, the first to be n the d-band minimum number of spaces to express the highest figure. You figure out from the corresponding characters, can be n the d-band characters. Main function is for testing trans function, asked to enter a positive integer to be converted, and then call the function trans conversion, and output to correct knowledge-band digital conversion results 2-16.
设计思路:求n整除d的余数,就能得到n的d进制数的最低位数字,重复上述步骤,直至n为0,一次得到n的d进制数表示的最低位至最高为数字。由各位数字取出相应的字符,就能得到n的d进制的字符。
主函数是用于测试trans函数,要求输入一个待转换的正整数,接着调用trans函数进行转换,并输出改正知识的2-16进制数转换结果。-Arbitrary hexadecimal number conversion. Design: n divisible by d for the remainder, we can get n the d-band minimum-digit number, repeat the above steps until n is 0, the first to be n the d-band minimum number of spaces to express the highest figure. You figure out from the corresponding characters, can be n the d-band characters. Main function is for testing trans function, asked to enter a positive integer to be converted, and then call the function trans conversion, and output to correct knowledge-band digital conversion results 2-16.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
JinZhiZhuanHuan/大作业3.cpp
JinZhiZhuanHuan/大作业3.exe
JinZhiZhuanHuan/大作业3.txt
JinZhiZhuanHuan
JinZhiZhuanHuan/大作业3.exe
JinZhiZhuanHuan/大作业3.txt
JinZhiZhuanHuan
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.