1// Your First C++ Program
2
3#include <iostream>
4
5int main() {
6 std::cout << "Hello World!";
7 return 0;
8}
9
1// C++ Hello World program
2#include <iostream>
3
4int main() {
5 std::cout << "Hello World!";
6 return 0;
7}
1#include<iostream.h>
2#include<conio.h>
3void main()
4{
5 clrscr(); // clear the screen
6 cout<<"Hello Compiler, I am C++";
7 getch(); // holds output screen until user press a key
8}