ramJha's blog

By ramJha, history, 4 years ago, In English

I use sublime text to code in c++ for windows and i don't know how to fix infinite loop because my system gets freeze whenever it encounter infinite loop and only way to fix is to restart the pc which creates lots of problem during the contest time.

I came through this blog of preda2or but unable to implement it. I wanted to know if there's any additional approach to fix this problem and anyone who has implement above blog.

Thanks in advance:)

PS:I use input.txt and output.txt as input and output file.

  • Vote: I like it
  • -9
  • Vote: I do not like it

| Write comment?
»
4 years ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

Instead of "bash" use "cmd" then the Sublime build will work for you. Or don't use Output.txt . In case of infinite loop it will print infinitely ( if there is a print statement ) and your drive will get full. Use only Input.txt then on compile and run ,output will pop up in cmd.

»
4 years ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

There is a 'Cancel Build' option in Tools for it. If that doesn't work open task manager, search for your program and close it manually. :D