Your First C++ program

Prem Tiwari - - C++ Tutorial

This is your first C plus plus (C++) program which let you know how you can write your first C++ program. This is a simple C++ program which prints the “Hello World!”. The “Hello World!” program is the first program for any programming language.

By executing this program, you can check whether everything is working fine or not in your system. Copy and paste below “Hello World!” C program on your machine.

Your First C++ program

Here is the explanation of the above C++ program:

  1. #include : It will include the header file of C++ library into your application.
  2. using namespace std: It is a standard C++ input/output library file.
  3. int main() { }: It is main function of C++, this program will start executing first from this function.
  4. cout << “Hello World!”;: This will print the "Hello World!"

About: Prem Tiwari

Prem Tiwari is the founder of and also a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies.

Tags: , , , ,