Warp up C++ by examples
Author: HBF
date: 2021-06-06
About: Quick start on C++ by examples.
Prerequisite: knowledge and skill on C.
What it contains
C++ (or CPP) is a primary OPP programming language. It is an extension of C with additional OOP features. The following examples demonstrates the OPP features of C++.
How to run
It needs a C++ compiler, e.g. GNU C++ compiler, or MinGW for Windows. We assume Windows OS the following.
- Download warm_up_cpp.zip and unzip to a directory, say C:/cpp
- Open cmd console, cd to the above directory.
- For each program file, open, read, understand, compile, and run.
- You can also run Windows batch test.bat, which compiles and runs all the programs.
- Run clean.bat to deletes all generated executable files.
References
- C++ tutorial at W3School