C++ - "'itoa' was not declared in this scope" 错误

来源:互联网 发布:大学生网络创业风险 编辑:程序博客网 时间:2024/05/21 10:05

"'itoa' was not declared in this scope" 错误


本文地址: http://blog.csdn.net/caroline_wendy


itoa函数不是ANSI(American National Standards Institute) C的标准, 应该避免使用这个函数.

简易替代版本为:

//itoa(i, s, 10);snprintf(s, sizeof(s), "%d", i);




3 0
原创粉丝点击