0
如何使用C#自定义函数从一种符号的比例转换为另一种符号的比例。将符号从一种位置转换为另一种符号
abstract string Convert(string value, string fromBase, string toBase);
值 - 基本符号
fromBase符号的字符串表示规模 - 字符串表示数字
至基站的基地 - 字符串表示的数值基础,你必须变换
PS 串表示符号的碱基位置刻度可包括任何符号表示数字升序
例如
值=“GSAK”
fromBase = “A,S,G,K” – four(4) is the base scale of notation (If write arabic figures: 0,1,2,3)
toBase= “0,1,2,3,4,5,6,7,8,9” – ten(10) is the base scale of notation
return value = “147”
你的类只能转换为10的标度比例。我需要转换为一些符号的比例。 – 2010-08-24 16:29:24
嗨@Grienders,您需要为每个比例创建此类的实例。比例应该由提供的符号列表的长度决定。你为什么说它只有10级? – Grzenio 2010-08-24 19:08:44
你的类只转换成十进制符号,不是吗? – 2010-08-24 19:49:09