A syntax error
The program in Listing 1 contains a syntax error that causes the compiler to report a compilation error.
(Note that this program is written using an object-based format as described in lesson 110.)
The error message looks something like the following:
Compiling... Errors01.cpp C:\jnk\Errors01.cpp(29) : error C2228: left of '.doSomething' must have class/struct/union type