Monday, August 2, 2010

Hello World C++

This program is most basic part of the C++. It enables you to Print out a certain word of "Hello World".

Codes:
#include <--- Directory of the TCPLUS
#include <--- Directory of the TCPLIB

Void Main ()
{ <-- Start of the Program
Clrscr(); <-- This function clears everything printed out.

Printf("Hello World"); <-- Printf functions that what will you print on the screen.
Remmember that ; functions stops the program.
getch();
} <-- End of the Program

After writing this program. Checking the program if theres and error is pressing Ctrl + F9.

#include
#include
Void Main ()
{
Clrscr();

Printf("Hello World");
getch();
}

Output:
Hello World

No comments:

Post a Comment