+ 1

How can stop infinite loops in c++?

I know that the following two loops could cause infinit loops. for (;;){} //infinite loop while(true){} //infinite loop Now, if we are traped into such loops, how could we stop system from running forever?

19th Apr 2018, 10:39 AM
Amirashkan
Amirashkan - avatar
3 Antworten
+ 4
I found the answer by myself. In C and C++, you can simply hold CTRL+Break when you trap into infinite loops! That's a relief! 😏 ---------------------------------------------------------- Vote up if it was useful for you... ❤️ ----------------------------------------------------------
19th Apr 2018, 10:43 AM
Amirashkan
Amirashkan - avatar
0
Oh
19th Apr 2018, 7:17 PM
Rafael Amon
0
I don’t know c++ or c
19th Apr 2018, 7:17 PM
Rafael Amon