替换atoi和atof命令 [英] replacement of atoi and atof command

查看:116
本文介绍了替换atoi和atof命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用UNIX环境,但是我在dev-cpp编译器中编写了代码.它在atoi命令中显示错误.请告诉我解决该问题的快捷功能.

I am using UNIX environment but i made the code in dev-cpp compilor. It is showing error in atoi command. Please tell me the quick function to solve this problem.

推荐答案

尝试一下此操作
http://www.boost.org/doc/libs/1_47_0/libs/conversion/lexical_cast.htm [ ^ ]
Try this
http://www.boost.org/doc/libs/1_47_0/libs/conversion/lexical_cast.htm[^]


尝试strtol()函数(
Try strtol() function (http://compute.cnr.berkeley.edu/cgi-bin/man-cgi?strtol+3[^])


请在发布前阅读常见问题解答.您应该发布相关代码和确切的错误消息以获得更好的帮助.无论如何,您都应该仔细阅读atoi 功能 文档 [ ^ ],以便正确使用它.
Please read the FAQ before posting. You should post the relevant code and the exact error message to get better help. In any case you should read carefully the atoi function documentation[^] in order to use it correctly.


这篇关于替换atoi和atof命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆