This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
用了atof()函数,一直报错,不知道咋回事,求大神解答
应该可以用强制数据类型转换。用()加类型强制转换应该就可以了
试了一下,看起来这么操作不行
你的字符串是单纯的字符串还是夹杂有数字的字符串?