It includes the header file iostream.h into the source code. This
file is required for input and output to the program. Therefore, if the
cout statement is used to output text/data to the screen it is
required.
Source code is the actual C++ program which is typed into the file. This is then
compiled into machine code which can be executed by the computer.
No - a comment is not a program statement, so does not require to be terminated by a
semi-colon.
The text to be printed must be within double quotes.
cout << "Hello World\n";
Keywords in C++ must be lowercase COUT must be written as cout
The output operator is << and not >>
The \n causes the a new line. It is required at the end of Hello WOrld to ensure the
cursor returns to the next line.
The \n (newline) is text to be printed and must be within the double quotes.