Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

how to run a c++ file from terminal linux

// compile the cpp file
g++ main.cpp -o main

// run the executable
./main
 
PREVIOUS NEXT
Tagged: #run #file #terminal #linux
ADD COMMENT
Topic
Name
8+8 =