摘要
从实际应用的角度出发,基于进制转换算法的基本原理,提出了以十进制为转换中心的进制转换算法,进行二、八、十和十六进制整数之间的转换。利用MFC,根据该算法,实现了二、八、十和十六之间的进制转换器,过程中提出了获取位权的算法。算法逻辑性强,实现简单方便。
From the angle of practical application,this paper comes up with the numeral system conversion taking decimal as center based on the principle of numeral system conversion algorithm.The mainly is the conversion among binary,octal,decimal and hexadecimal.Making use of MFC and this algorithm,the converter among binarye,octal,decimal and hexadecimal is implemented.In this process,the algorithm of acquiring weight is proposed.The algorithm of this paper is logical and it is simple to implement.
出处
《电脑开发与应用》
2012年第3期66-68,共3页
Computer Development & Applications
基金
四川省教育厅自然科学重点基金资助项目(11ZA040)
关键词
进制转换
十进制
算法
numberal system conversion
decimal
algorithm