文件名称:FindBase
- 所属分类:
- 书籍源码
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 185kb
- 下载次数:
- 0次
- 提 供 者:
- duya*****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
同一个数会由于采用不同的基数而使得其表现的形式是完全不一样的,在我们的学习中,我们熟悉的基数有10进制、12进制、60进制、2进制、8进制和16进制。比如数据12,如果我们用2进制表示,则它就是1100;如果用3进制表示就是110;如果用8进制表示则是14。我们的编程任务就是与数的进制(也就是基数)有关。
程序中我们会给大家很多个数对(假设每个数对的数用X和Y表示),程序需要解决的问题就是为X和Y各选择一个最小的基数,以使得这两个数在其选择的基数上是一对相等的数。
例如,12和5这个数对,我们可以为12选择基数3,为5选择基数6,这样一来12(base 3)=5(base 6),因为12(base 3)就是10进制数5,而5(base 6)也是10进制数中的5。
程序的输入是通过文件完成的。
文件中的每一行都包含一个数对X和Y,两个数通过一个或多个空格符分割,与X和Y相关联的有效基数值范围为2~36。X和Y的合理数值表示字符包括0—9和A-Z(表示数值10-35)。
文件的最后一行用一个数字0表示输入的结束。-same number will be different because of the base and make its performance in the form of a completely different, In our study, we are familiar with the base 229 10, 229 12, 229 60, 229 2. 8-band 16-band. For example, 12 data, if we use the two-band said, it is 1100; If three-band said is 110; If eight 229 said it is 14. Our task is programming with a number of 229 (or base). We will process all of the many numbers (on the assumption that each number on the number of X-and Y said), procedures need to address the issue of the X and Y choose a minimum base, This makes two to a few in their chosen base is the equivalent of a few. For example, 12 and 5, the figure right, we will be able to choose 12 base 3 to 6 base 5 choice, This one to 12 (base 3) = 5 (base 6), because 12 (base 3) 229 10
程序中我们会给大家很多个数对(假设每个数对的数用X和Y表示),程序需要解决的问题就是为X和Y各选择一个最小的基数,以使得这两个数在其选择的基数上是一对相等的数。
例如,12和5这个数对,我们可以为12选择基数3,为5选择基数6,这样一来12(base 3)=5(base 6),因为12(base 3)就是10进制数5,而5(base 6)也是10进制数中的5。
程序的输入是通过文件完成的。
文件中的每一行都包含一个数对X和Y,两个数通过一个或多个空格符分割,与X和Y相关联的有效基数值范围为2~36。X和Y的合理数值表示字符包括0—9和A-Z(表示数值10-35)。
文件的最后一行用一个数字0表示输入的结束。-same number will be different because of the base and make its performance in the form of a completely different, In our study, we are familiar with the base 229 10, 229 12, 229 60, 229 2. 8-band 16-band. For example, 12 data, if we use the two-band said, it is 1100; If three-band said is 110; If eight 229 said it is 14. Our task is programming with a number of 229 (or base). We will process all of the many numbers (on the assumption that each number on the number of X-and Y said), procedures need to address the issue of the X and Y choose a minimum base, This makes two to a few in their chosen base is the equivalent of a few. For example, 12 and 5, the figure right, we will be able to choose 12 base 3 to 6 base 5 choice, This one to 12 (base 3) = 5 (base 6), because 12 (base 3) 229 10
相关搜索: z-stack
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Find Base
.........\Debug
.........\Find Base
.........\.........\base.in.txt
.........\.........\base.out.txt
.........\.........\Debug
.........\.........\Find Base.cpp
.........\.........\Find Base.dsp
.........\.........\Find Base.plg
.........\Find Base.dsw
.........\Find Base.ncb
.........\Find Base.opt
.........\Debug
.........\Find Base
.........\.........\base.in.txt
.........\.........\base.out.txt
.........\.........\Debug
.........\.........\Find Base.cpp
.........\.........\Find Base.dsp
.........\.........\Find Base.plg
.........\Find Base.dsw
.........\Find Base.ncb
.........\Find Base.opt