A faster way to compile and execute c++ code?

Very simple question,

it is taking me a long time to run code once. Is there a faster way to compile than typing into “BASH” g++ hello.cpp -o hello ./hello?

This takes very long.

combine the commands into one line and use ctrl p or up to repeat previous commands

you should probably also add -Wall

1 Like

Use control C to copy and control v to paste or else use a ide if the code works paste it in codecademy