字符串char和整形int的区别就是字符(char)‘5’-‘0’=整形数字(int)5,然后再强制转换一下将(int)转换成(double)就可以了。算了,我写出来吧。double chartodob(cahr * a){ double i=a-'0';return i;}