I am reading Bjarne Stroustrup Programming: principles and practice using C ++
The drill section for chapter 2 discusses various ways to view input errors when compiling a program. hello_world
#include "std_lib_facilities.h"
int main()
{
cout << "Hello, World!\n",
keep_window_open();
return 0;
}
In particular, this section asks:
Think about at least five more mistakes you might have typed in a program (for example, forget keep_window_open()to leave the Lock key caps when entering a word or enter a comma instead of a semicolon) and try each one to see what happens when you try to compile and run these versions.
cout , .
( ). (, javascript: ?), ?
, keep_terminal_open();, .