C++ is an object-oriented programming language that is an enhanced version of C. A C++ program consists of three main parts: preprocessor directives, the main function, and C++ statements. Preprocessor directives provide instructions to the compiler, such as including header files. The main function indicates the beginning of the program and contains the main body of code. C++ statements are the individual lines of code written within the main function and end with semicolons.