下面的代码有什么问题? [英] what's wrong with the code below?

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

问题描述

我得到的结果是不正确的。我不知道错误在哪里..请帮帮我。

the result i am getting is not correct.And i do not know where the mistake is.. please help me.

展开 | 选择 | 换行 | 行号

推荐答案

我正在使用Visual Studio.NET 2008,我从上面的代码中得到7400000看起来是正确的。


你是什么编译器使用?
I''m using Visual Studio.NET 2008 and I get 7400000 from the above code which looks to be correct.

What compiler are you using?


感谢您的快速回复。我正在使用Turbo c ++
Thanks for such a quick reply.I am using Turbo c++


您可能正在处理溢出;尝试使用long而不是int;或者如果你只处理正值,也许是无符号长。 limits.h将允许您查看turbo使用的尺寸;例如

You''re probably dealing with overflow; try using long instead of int; or if you''re only dealing with positive values, maybe unsigned long. limits.h will allow you to see what sizes turbo uses; for example

展开 | 选择 | Wrap | < span class =codeLinkonclick =LineNumbers(this);>行号


这篇关于下面的代码有什么问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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