Open jiegenghua opened 4 years ago
(1) g++ file.cpp This will produce an executable a.out in the same directory. Then ./a.out (2) g++ -o output file.cpp This will compile file.cpp to the binary file output, and then type ./output
(1) g++ file.cpp This will produce an executable a.out in the same directory. Then ./a.out (2) g++ -o output file.cpp This will compile file.cpp to the binary file output, and then type ./output