I would like to compile and run C program in sublime text 3 on ubuntu 14.04. Currently the program is being compiled with gcc using sublime text 3 executing a command (see b
If you code C or C++ language. I think we are lucky because we could use a file to input. It is so convenient and clear. I often do that. This is argument to implement it :
{
freopen("inputfile", "r", stdin);
}
Notice that inputfile must locate at same directory with source code file, r is stand for read.