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