How to Compile and Run C/C++ Programs using the Terminal in Ubuntu 19.04

preview_player
Показать описание
In this tutorial, I will show you how you can compile and run your C/C++ programs using the terminal.
For this tutorial, I'm using g++ Compiler. Same can be done using gcc as well.

Steps: -
1. Open terminal and type "g++ --version" to check if you have g++ installed or not.
2. To download and install g++ just type "sudo apt install g++". Followed by your root password.
3. After the installation, create a simple .cpp file with some c++ code.
5. To run the program type ./filename
Рекомендации по теме
Комментарии
Автор

Nice vid.👍
For future videos, it'd be handy if you could post the source code in the description for us lazy bunch.😅

theprosecutor
join shbcf.ru