Published
- 1 min read
how to compile and run cpp code in terminal
The solution for this is noted below
how to compile and run cpp code in terminal
Solution
# compile cpp_code.cpp
g++ cpp_code.cpp
# run compiled file
./a.out
Try other methods by searching on the site. That is if this doesn’t work