4 ms·
This is easier to do as a little script that compiles and runs the code. /** foo.cc **/ #! compile-and-run-cc.sh int main() { ... } /** compile-and-ru
by tantalor 8y ago
This is easier to do as a little script that compiles and runs the code.
/** foo.cc **/
#! compile-and-run-cc.sh
int main() { ... }
/** compile-and-run-cc.sh **/
// .cc file is passed in as first argument to this script
You can get fancy with passing in compile or runtime args.