阅读背景:

淡疼的itoa和abs: 'itoa' was not declared in this scope; 'abs' was not declared in this scope

来源:互联网 

       本来今天就被几个问题折腾得够呛, 结果下午写代码, g++又提示我:'itoa' was not declared in this scope,  尼玛, 我用itoa怎么啦? 后来发现:itoa函数不是ANSI(American National Standards Institute) C的标准, 应该避免使用这个函数.  OK, 是我糊涂了, 居然想着去用itoa这么危险恶心的非标准函数, 还是用snprintf吧。       本来今天就被几个问题折腾得够呛, 结果下午写代码, g++又提示我:'itoa'




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: