I'm new to both C++ and using terminal on MacOS, and I was wondering if there's any way to make a shortcut for compiling.
It's somewhat annoying to have to type g++ filename.cpp -o 'filename'
every time I want to compile. Just curious if there's anyway I could make a short cut where I just type g++ 'filename'
.
Thanks!