码迷,mamicode.com
首页 > 编程语言 > 详细

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

时间:2014-09-10 17:45:26      阅读:959      评论:0      收藏:0      [点我收藏+]

标签:mystra   c++   itoa   was not declared in   this scope   

"‘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);


bubuko.com,布布扣


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

标签:mystra   c++   itoa   was not declared in   this scope   

原文地址:http://blog.csdn.net/caroline_wendy/article/details/39183807

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!