First Program in Cpp

First program in CPP.Cpp is an Object oriented language (OOpl). It was developed in 1980 at BELL Laboratories..

First program in C++

Cpp is an Object oriented language (OOpl). It was developed in 1980 at BELL Laboratories. It is improved version of C language. It provides the facility of working with objects and classes. It is very powerful language and is used to develop a variety of program.
Here is the First program with screen shot in Borland C++ . You can use any Software like Visual Studeo, codeBlock etc and whatever you like. The main purpose is practice to get success. Rbatec provide you a platform to learn Cpp.
C++ is close to human langauges that’s why this is called High Level Language.
Int main

Cout<<”welcome to c++”<<endl;
Getch ( );
Return 0;
First program in Cpp
First Program in Cpp

Preprocessor Directive (#)

Instruction given to Compiler before the execution of actual program. The preprocessor Directive start with hash symbol #.
Include Preprocessor
Include preprocessor directive include header file in cpp program.
Example #include<iostream>
Header File
It is the collection of library function to perform different tasks.
Syntax of Header file
“Iostream” is stands for input output stream.
Main Function
The main function () is the initial line of CPP Program. When the program is run, the control enters main() function and start executing its statements.
Syntax of Main Function
Void main
Body of main dunction.

Body of program
In the above first cpp program the body is (cout<<”welcome to c plus plus”;).
In Double quotes the Line is displayed on screen. You can display any this on screen like your name .
Example cpp
Cout<<”I m visiting RBatec blog”; etc
In above c++ first program
The first line is preprocessor Directive to include a header File iostream.h.
The secong line in main function where the execution of program starts.
Return 0;
Main function should always return 0.its mean Main fuction () ran fine.
You can run this program in Borlan Cpp by using short Command ctrl+f9.

Reference Book: Object Oriented Programming Using C++


Name trix,1,Blogging,1,CppTutorial,8,create viruse,1,cyber security,1,fb trix,1,gmailtrix,1,laptop screen shot,1,Mobilink,1,notepad tricks,1,notepad viruse,1,PCSREEN SHOT,1,Search engine optimization (SEO),1,seo,1,software,1,Technology,4,tips,1,visitor.seo traffic,1,
Computer Tech Articles: First Program in Cpp
First Program in Cpp
First program in CPP.Cpp is an Object oriented language (OOpl). It was developed in 1980 at BELL Laboratories..
Computer Tech Articles
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy