Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 383 Bytes

File metadata and controls

18 lines (12 loc) · 383 Bytes

How to run C++ code in terminal

This gives error & doesn't work:

g++ test.cpp -o test then ./test

This works according to Gemini:

E.g. When in root of directory:

g++ test.cpp -o test && ./test

E.g. When in c1m1_0_test folder:

g++ c1m1_0_test/test.cpp -o c1m1_0_test/test && ./c1m1_0_test/test