First C++ Program

C++ programming - C++ first program hello world with source code. Today we are going to learn c++ programming. This is our first post about c++ programming. recently we upload some java programming tutorial with source codes that really helpful for programming lovers. C++ is also part of oop as java is.

What is oop ?
The full meaning of oop is object oriented programming, mainly this programming language works throw the object we can say it creates a shadow of object.

OOP follow three rules encapsulation, polymorphisom, inheritence.

First C++ Program

#include <iostream>
#include <cstdlib>
using namespace std;

int main(){

cout<<"Hello World";
system("PAUSE");
return 0;
}

Here Input Output Stream is included in header shortname is <iostream>.
remember: .h extention is no needed to use in C++ as we used in programming C.
cout is for print the text that we used printf in programming C.
To insert C Studio Library here we included <cstdlib>. here you can see the video tutorial to learn more clearly.

C plus plus mainly another upgrated version of c programming language, you all should know if you learn logic then learning any language is very easy. But in oop you need to just learn rules and build them with logic you will get awesome returns from you codes.

Don't forget to leave your valuable comment about c plus plus programming, though i am student of programming so i can't make best practice to show you how it works so pardon if any mistake there. I know practice makes a man perfect so still learning programming and i think you also a good learner like me.
Happy programming  :)

0 Comments