<<< First C++ program | Index | First C++ program, cont. >>> |
#include <iostream>
int main()
{
std::cout << "Hello, World!";
return 0;
}
#include <iostream> is a directive to include keyboard and screen input/output functionality to our program. Without this directive, the program would have no means to print "Hello, World!" greeting on the screen.
<<< First C++ program | Index | First C++ program, cont. >>> |