Printing Message On Screen - Using Cout in C++
Information Keep in Mind :
- cout is an object of class ostream that represents the standard output stream.
- It corresponds to the cstdio stream stdout.
General Purpose :
- Prints Message on Screen.
- Printing Value of Variable on Screen.
Version 1 : .h Style
1 2 3 4 5 6 | #include<iostream.h> int main() { cout <<"Hello,Welcome to C++"; return(0); } |
Output :
1 | Hello,Welcome to C++ |