首页 > 编程语言 > 详细

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

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

"‘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" 错误

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!