(1) typing program with Windows Notepad
(2) saving as hello.cpp
(3) moving result to directory C:\MyPrograms
(4) at a command prompt, changing directory to C:\MyPrograms
(5) entering command c++ hello.cpp
yields
hello.cpp:12:1: error: expected unqualified-id before ':' token