摘要:
要求如题 头文件stdlib.h中有一个函数atof() 可以将字符串转化为双精度浮点数(double) double atof(const char *nptr); 此字符串为C风格字符串,因此需要将string转化为C风格字符串 此时可用到一个函数c_str() const char *c_str() 参考资料: string中c_str()、data()、copy(... 阅读全文
posted @ 2016-03-14 23:03
Pic
阅读(1025)
评论(0)
推荐(0)

浙公网安备 33010602011771号