1.C++ "Hello, World!" Program
C++ "Hello, World!" Program
A simple C++ program to display "Hello, World!" on the screen. Since, it's a very simple program, it is often used to illustrate the syntax of a programming language.
#include <iostream>
using namespace std;
int main()
{
cout << "Hello, World!";
return 0;
}
Hello, World!
main()
function.cout
is the standard output stream which prints the "Hello, World!" string on the monitor.#include <iostream>
int main()
{
std::cout << "Hello, World!";
return 0;
}
Hello, World!
Comments
Post a Comment