Cause of infinite loop..? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 2

Cause of infinite loop..?

How escape from the front-end during run time in the event of, did infinite loop process? For eg., In run time,Press ENTER key and it takes the random output (infinitely) continuously. So that time what will do?

2nd Oct 2017, 9:07 AM
Kumaresan L
Kumaresan L - avatar
1 ответ
0
if your program is looping infinitely, then you'll have to kill the process. it depends on your operating system how to do this. generally it's a good idea to include some special input and check for it. on linux for example, Ctrl+D inputs an end of file character, and you can check for that in an if statement and stop if you see it
2nd Oct 2017, 10:10 AM
forrest