如输入: ( 0.3 , 5.4 ,6.7)或者( 6.2,6.3,6.4)提取出其中的浮点数
浮点数与整数的最大区别就是小数点,可以用
scanf("%s",str);
存成字符串再用
if (NULL == strchr(str, '.'))
判断有无小数点