仅显示部分结果 [英] only partial result is displayed

查看:70
本文介绍了仅显示部分结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经执行了一个程序来显示小于某个数字类型的所有素数...当我的数字太高时为什么我的comp显示0作为输出,如果它的中等,那么一些初始素数被跳过就像2,3 ...它直接从1000+开始?为什么会这样?

解决方案

使用调试器! :笑:

停止尝试前进并等待你安装VS - 然后你可以调试它,看看发生了什么。

很可能你遇到的大多数问题都归结为二十年前使用的编译器没有生成在64位机器上运行良好的代码:请记住,大多数Windows都是16位的天!

i have executed a programme to display all the prime numbers less than a certain number typed...when my number is too high why is my comp showing 0 as the output and if its moderate then some initial prime numbers are skipped like 2,3...and it is starting directly from 1000+?why is it happening so?

解决方案

Use the Debugger! :laugh:
Stop trying to plough on ahead and wait until you have VS installed - then you can debug it and see what is happening.
The chances are that most of the problems you are meeting are down to the twenty year old compiler you are using not producing code that works well on 64 bit machines: remember that most Windows was 16 bit in those days!


这篇关于仅显示部分结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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