在c ++中超出了最大时间执行 [英] max time execution exceeded in c++

查看:119
本文介绍了在c ++中超出了最大时间执行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作一个c ++程序,当我尝试运行它时,它会显示最大值。超出执行时间。请告诉我该怎么办?这是否意味着我制作的程序无法在任何地方工作?

请帮助。

提前感谢。

i am making a c++ program and when i try to run it ,it shows max. execution time exceeded. please tell what should i do?? Is this mean that the program i made will not work anywhere??
pls help.
thanks in advance.

推荐答案

很可能你的代码中有一个无限循环。

查找while和do-while循环,没有或有错误的中断条件。

在里面放一个断点每个并逐步执行代码。

For循环通常有一个计数器,所以通常没有问题。



没有你显示你的代码它是不可能给出更好的答案。
Most likely you have an infinite loop in your code.
Look for while and do-while loops without or with faulty break conditions.
Put a breakpoint inside each and step through the code.
For loops usually have a counter, so normally not a problem.

Without you showing your code it is impossible to give a better answer.


这篇关于在c ++中超出了最大时间执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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