注册 登录
编程论坛 C++教室

itoa函数不能用的问题

yujinxiang19 发布于 2010-08-19 22:18, 3671 次点击
我的系统为:
Red Hat Enterprise Linux ES release 4 (Nahant Update 5)

c++程序中想用itoa函数,但编译时出现`itoa' was not declared in this scope错误,我已经加了#include <stdlib.h> 头函数了,请问各位大虾,怎么解决呀?

这里小弟先谢谢了!!!
3 回复
#2
weble2010-08-19 22:50
itoa在windows下才有.
linux下可以通过sprintf来做转换
#3
yujinxiang192010-08-19 23:20
回复 2楼 weble
十分感谢!
#4
pangding2010-08-19 23:27
嗯,itoa 不是标准函数。
1