Printing Message On Screen - Using Cout in C++

January 18, 2025 No Comments » Hits : 172





Information Keep in Mind :

  1. cout is an object of class ostream that represents the standard output stream.
  2. It corresponds to the cstdio stream stdout.

General Purpose :

  1. Prints Message on Screen.
  2. Printing Value of Variable on Screen.

Version 1 : .h Style

#include<iostream.h>
int main()
{
cout <<"Hello,Welcome to C++";
return(0);
}

Output :

Hello,Welcome to C++

Incoming search terms: