Блог пользователя Zain__Mansour

Автор Zain__Mansour, 9 месяцев назад, По-английски

I was coding on my 8gb ram laptop with sublime text and suddenly the laptop froze I pressed the power button to force restart .... today I was coding and I opended the task manager and "build and run" my code but, the ram usage started to increase untill the laptop froze again ...

so I will not use sublime text again

What (text editors)/(IDEs) are you using right now ? and why you're using it?

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

»
9 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

I use vs code .

  • »
    »
    9 месяцев назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    Are you using any extensions or edits on it? how you get input/output? from external files or from terminal?

    • »
      »
      »
      9 месяцев назад, # ^ |
        Проголосовать: нравится 0 Проголосовать: не нравится

      Use Competitive Companion extension in Google Chrome OR Mozilla Firefox and download the same extension in VS code. Usage is pretty simple and you can also submit your code directly from the extension in VS code. (this submit functionality works only on Mozilla)

»
9 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится
»
9 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

It generally happens when you use while loop. There is nothing to limit usage in sublime text. So, to overcome this problem what i do is: Use terminating condition in while loops by taking some large number that won't affect your code.

For Example