
Все работает на кодовых блоках, и я не знаю, как это сделать на терминале.
решение1
1. Как запустить .cpp из Терминала
1.1 Только файл «имя_файла.cpp»:
Make filename # creates “main” application ./main #Run application on terminal
Или
g++ -Wall -o outputname filename.cpp #”-Wall” activates all Warnings ./main #Run application on terminal
1.2 Несколько файлов .cpp:
1.2.1 Выбранные файлы .cpp
g++ -Wall filename1.cpp filename2.cpp -o output ./output
1.2.2 Все файлы .cpp
g++ -Wall *.cpp -o outputname ./outputname