C++ is one of the most versatile languages in the world. It is used nearly everywhere for everything… systems programming (operating systems, device drivers, database engines, embedded, Internet of Things, etc.)

Enter Header Image Headline Here

Wednesday 5 April 2017

C++ Program : Display Message on Screen

              C++ Program : Display Message on Screen


Standard Way to Write C++ Program :

  • Cout is  used to Print Message on the Screen.
  • Insertion Operator is used to put data on screen (<<).
  • Return type of main function is returns 0 to operating system upon successful execution of program.

#include <iostream>
using namespace std; 
 
int main()
{
  cout << "languagecplusplus.com"; 
 
  return 0;
}

.h Stylle Program : Old Style  -

#include<iostream.h>
 
int main()
{
  cout << "languagecplusplus.com"; 
 
  return 0;
}


Output:

languagecplusplus.com






0 comments:

Post a Comment

Popular Posts

Recent Posts

Categories

Unordered List

Text Widget