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

Автор Liakat_Shikder, 3 года назад, По-английски

I have recently moved from windows to ubuntu 20.04. I need a build system for sublime text 3 for ubuntu which includes followings features :

  1. It should build and run the current opened file in C++14
  2. It should take input from a file named "input.txt" and show the output in sublime console.

There are many available sublime build system but none of them has the feature 2.All of them show results to another file not in sublime console. Thank you for your time and excuse my bad english.

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

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

You can add a line in your code to do what you want freopen("input.txt","r",stdin)