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

Friday, 7 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 integer as it returns 0 to operating system upon successful execution of program.


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


.hStyle Program : Old Style


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

Output : 


www.languagecplusplus.com

0 comments:

Post a Comment

Popular Posts

Recent Posts

Categories

Unordered List

Text Widget