Emacs: shortcut for compiling and running c/cpp code
I wanted to have c / c++ code compiled and run with shortcuts.
With some help from net i was able to do so by adding a elisp snippet to my .emacs file.
With the below snippet you should be able to compile the current code file using F9 and run the current code file using F8














