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 :
It should build and run the current opened file in C++14
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.
This is my current build system. It takes care of inf loops by terminating the program after 10 secs.I would say instead of using sublime console for output use a txt file for output. I mean this kind of layout
Though I recommend using output.txt format as it facilitates printing the debugging output in the console and standard output in output.txt
PS: You don’t have to use that freopen stuff for taking input from input.txt
@cubefreak777 Thanks brother.This is what I was looking at. But it seems your build system is not compiling in C++14 rather it is using C++98.Can you change it for C++14 or C++17 ?