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

时间:2014-09-10 17:45:26   收藏:0   阅读:1116

"‘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,布布扣


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

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!