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