搜索资源列表
R
- 描述: 输入一个十进制数N,将它转换成R进制数输出。 输入: 输入共一行,包含两个整数N(32位正整数)和R(2<=R<=16, R<>10)。 输出: 输出转换后的数,输出占一行。如果R大于10,则对应的数字规则参考16进制(比如,10-16分别用A-F表示,等等)。 输入样例: 23 12 6687 16 输出样例: 1B 1A1F-Descr iption: En
16-10
- 将一个十六进制的字符串转换成它的等价的十进制数值。主函数负责收集字符,并判别它们是否为十六进制字符,htoi函数负责转换工作-to a hexadecimal string converted into its equivalent of the decimal value. The main function responsible for the collection of characters, and for judging whether the hexadecimal charact