atoi的代码(ascii到整数) [英] code for atoi(ascii to integer)

查看:106
本文介绍了atoi的代码(ascii到整数)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




请发布atoi代码(asciitointeger)

紧急请...


谢谢



please post the code for the atoi (asciitointeger)
urgent please..

thanks

推荐答案

为什么你想知道。


无论如何它只是特定于实现,只要函数确实如此在正确的庄园行事,它的内部操作是它自己的商业。
Why would you want to know.

Anyway it is implementation specific, as long as the function does acts in the correct manor it''s internal operations are it''s own buisness.



hi,


请发布atoi代码(asciitointeger)

紧急请...


谢谢


please post the code for the atoi (asciitointeger)
urgent please..

thanks



以下代码正常工作


已删除代码,请阅读发布指南

following code is working

Code removed, please read posting guidelines



以下代码正在工作


[...]

n = n * base +(* str-48);
following code is working

[ ... ]
n= n*base + (*str-48);



不,它不是;它在EBCDIC机器上以一种可怕的方式失败。


亲切的问候,


Jos

No it doesn''t; it fails in a horrible way on EBCDIC machines.

kind regards,

Jos


这篇关于atoi的代码(ascii到整数)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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