Introduction
This three part tutorial looks at how C++ implements object classes with the aim of improving the readers understanding of the language. To achieve this, we will be using the Microsoft compiler, implementing a set of C++ classes using pure C.
This tutorial looks at class definitions and how they are implemented, tutorial II looks at the implementation of inheritance and finally tutorial III will look at pure virtual functions.
Compiling pure C using the Microsoft Compiler
When compiling the samples provided in these tutorials, it is important to remember to compile the C code using the /TC command line option. If you are using Visual Studio, then right-click on the project and select properties at the bottom of the menu. You then select Configuration Properties -> C/C++ -> Advanced -> Compile As -> Compile as C code (/TC). more...
This three part tutorial looks at how C++ implements object classes with the aim of improving the readers understanding of the language. To achieve this, we will be using the Microsoft compiler, implementing a set of C++ classes using pure C.
This tutorial looks at class definitions and how they are implemented, tutorial II looks at the implementation of inheritance and finally tutorial III will look at pure virtual functions.
Compiling pure C using the Microsoft Compiler
When compiling the samples provided in these tutorials, it is important to remember to compile the C code using the /TC command line option. If you are using Visual Studio, then right-click on the project and select properties at the bottom of the menu. You then select Configuration Properties -> C/C++ -> Advanced -> Compile As -> Compile as C code (/TC). more...
No comments:
Post a Comment