55问答网
所有问题
C++中为什么不能使用 atoi()函数? 使用codebloks 10.05 版本。
语句: p1->price = atof(str.c_str());
错误:error:'atof' was not declared in this scope
举报该问题
推荐答案 2012-11-15
atoi atof是c语言提供的一个扩展功能,它能将一个字符串转换成对应的float或者integer。
使用这些函数时,必须引入头文件
#include <stdlib.h>
温馨提示:答案为网友推荐,仅供参考
当前网址:
http://55.wendadaohang.com/zd/cGLGFQQ4G.html
其他回答
第1个回答 2012-11-15
_atof_l()
相似回答
大家正在搜
atoi函数怎么用
strcpy函数怎么用
isdigit函数
atoi函数字符串转int
strtok函数
tolower函数
malloc函数
strcat函数
编写atoi函数
相关问题
c++中atoi函数的使用
请问:C++ atoi函数 怎么用?谢谢大家~
C++中 atoi(s)函数的作用?
函数atoi()有什么用处,他的头文件是什么?它在Linux...
在C++中,如何用atoi函数把string类型转化成整型,...
C# 中有没有atoi函数, 怎么调用啊,为什么不能直接使用...
为什么Dev-c++无法用strlen函数,语法检查显示st...
c++中atoi等的意思是什么?