I just switched to using linux at school for all my programming assignments. As it is, I'm typing out the g++ command every time I want to test my program, which is most inconvenient. If I was on a windows machine, I would make myself a compile.bat like this:
Code:
g++ %1.cpp -o %1
%1
Is there any way to make a similar file in linux? Or is there an equivalent to system()?