A programming language is a formal constructed language designed to communicate instructions to a machine, particularly a computer. Programming languages can be used to create programs to control the behavior of a machine or to express algorithms.
Most famous programing languages
- C
- C++
- PHP.
- Python
- 7 C#
- Java
- Perl
Dear friends,
Today onwards we are going to learn C++.to do this we need a IDE I am using linux shell to write c++ codes but you can use any IDE.language is independent from IDE(Integrated Development Environment)
What is IDE ?
An integrated development environment (IDE) is a programming environment that has been packaged as an application program, typically consisting of a code editor, a compiler, a debugger, and a graphical user interface (GUI) builder.
Example of c++ IDEs
Ok friends now lets Start over C++ program (Hello world)
create file with any name using command vi filename.cpp ass in the picture and press Enter
Then press Insert button in keybody and type the c++ code in the picture
#include<iostream>
using namespace std;
int main()
{
cout<<"Hello World"<<endl;
return 0;
Next step is compiling ,first you need exit from the editor to do this
press Esc :wq! and Enter
then type
g++ -o any_name filename.cpp
If there is a compilation error correct it and recompile it.
then final step run the program
./any_name_before_you_give in my case its l
ex: ./l
thank you,we will meet in next lesson







ConversionConversion EmoticonEmoticon