atoi回归 [英] atoi return
问题描述
我刚读过atoi()没有返回任何错误。它返回一个int而且
int的值应该是转换的值。对我来说似乎是b / b
,它会告诉你是否有成功。我错了吗?
比尔
I have just read atoi() returns no errors. It returns an int though and
the value of the int is supposed to be the value of the conversion. It seems
to me that right there tells you if there was success or not. Am I wrong?
Bill
推荐答案
Bill Cunningham写道:
Bill Cunningham wrote:
我刚读过atoi()没有返回任何错误。它返回一个int而且
int的值应该是转换的值。对我来说似乎是b / b
,它会告诉你是否有成功。我错了吗?
I have just read atoi() returns no errors. It returns an int though and
the value of the int is supposed to be the value of the conversion. It seems
to me that right there tells you if there was success or not. Am I wrong?
这一周或者两个回来你的一条线上都不会被打死吗?
什么价值表示失败?
-
Ian Collins
Wasn''t this all beaten to death on one of your threads a week or two back?
What value would indicate failure?
--
Ian Collins
>
" Bill Cunningham" < no **** @ nspam.invalidwrites:
"Bill Cunningham" <no****@nspam.invalidwrites:
我刚读过atoi()没有返回任何错误。它返回一个int而且
int的值应该是转换的值。对我来说似乎是b / b
,它会告诉你是否有成功。我错了吗?
比尔
I have just read atoi() returns no errors. It returns an int though and
the value of the int is supposed to be the value of the conversion. It seems
to me that right there tells you if there was success or not. Am I wrong?
Bill
你应该做的是使用sprintf和scanf然后做一个字符串比较
,输出到你的atoi输出。如果结果相同那么
你走在正确的轨道上。
What you should do is use sprintf and scanf and then do a string compare
with their output to your atoi output. If the result is the same then
you are on the right track.
Richard写道:
Richard wrote:
" Bill Cunningham" < no **** @ nspam.invalidwrites:
"Bill Cunningham" <no****@nspam.invalidwrites:
>我刚读过atoi()没有返回任何错误。它返回一个int而且
int的值应该是转换的值。对我来说似乎是在那里告诉你是否有成功。我错了吗?
比尔
> I have just read atoi() returns no errors. It returns an int though and
the value of the int is supposed to be the value of the conversion. It seems
to me that right there tells you if there was success or not. Am I wrong?
Bill
你应该做的是使用sprintf和scanf然后做一个字符串比较
输出到你的atoi输出。如果结果是相同的那么
你是在正确的轨道上。
What you should do is use sprintf and scanf and then do a string compare
with their output to your atoi output. If the result is the same then
you are on the right track.
你是在诱饵池比尔,还是发布了bollocks?
-
Ian Collins
Are you baiting pool Bill, or posting bollocks?
--
Ian Collins
这篇关于atoi回归的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!