Developing with C/C++ on console

Saturday, Jan 30, 2016
Section: Home / Post
Categories: Developer,
Tags: Bash, C/C++, Linux,

But then I discovered the wonders of bash commands.  Bash  is the environment of the Linux terminal. It lets you define functions that you can call later. The function I wrote was:

I put this function in my .bashrc file so it’s available whenever I log in to my terminal. With this function,  I can just pass the .cpp file as an argument along with other command line arguments. The function compiles and runs the source file together: