When a program is run from the command line, the arguments from the command line are presented to main as an array of strings. This array contains the name of the program followed by whatever is typed after it. (Run the first example.)
Note that these are plain C strings, which we have not discussed much, but they convert automatically to C++ strings. This is the easiest way to use them.