Writing a C/C++ program on ubuntu terminal


Here is a simple 5 step instruction to compile and execute C/C++ program on the linux terminal. I have also included a sample C/C++ example to demonstrate.

In order to write the program in the terminal itself, we need a console (terminal) based  text editor so, I am using Vim in this tutorial since vim is the most popular console text editor, but you are free to write your program in any editor like nano, pico, jed or vim etc.

Now, lets follow the instructions but it would be really helpful if you learn some vim basics here (won't take much time)  before proceeding to the instructions or its perfectly okay if you are in a hurry :)


Read more »

Comments

Popular posts from this blog

How to Install Antlr4 in Ubuntu/Linux

How to install python-gst (pygst) in ubuntu 16.04

How to make a gui Calculator in Python using Tkinter