Sunday, February 17, 2013

OOCP (CPP) : Example # 01 : Hello World using C++

OOCP (CPP)  :  Example # 01 :  Hello World using C++

* Lets start learning CPP (C++) Using Example.

* Hello World using C++

//Written by Latest Technology Guide    
//Title : OOCP (CPP)  :  Example # 01 :  Hello World using C++.



#include <iostream.h>
#include <conio.h>

void main()
{
clrscr();

cout << "Hello World";
cout << "\n";

getch();
}

/*
Guidelines for Object Oriented Concepts & Programming (CPP) (C++)

  << Insersion Operator

  >> Extraction Operator

  cout is a Predefined Object not function


  \t Horizontal Tab

  \n New Line
  \" Double Quote
  \' Single Quote
  \b Back Space
  \r Carriage Return at same line (Like Home Key)
  \a Beep

*/


Output:

* You will find Hello World as output


--------------------------------------------------------------------------------
OOCP (CPP)  :  Example # 01 :  Hello World using C++.

* Simply run your program as before and will get output as Hello World
.

Note: All programs are developed and tested using Turbo C++ 3.0 under Windows XP. We just want to provide guidelines to the users. If you are using any other Compiler or other operating system they you need to modify this program as per your requirements. 

3 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. why you use #include iomanip.h

    ReplyDelete
  3. Sorry Tariq, It was added by mistake.

    Thanks for your corrections. We will updated this program shortly.

    ReplyDelete