In these 9 modules, I wrote simple programs to learn about object-oriented programming in the C++ 98 Standard. Each exercise has its own Makefile that compiles the source code into an executable.
- Navigate to the directory of exercise. For example
cd cpp00/ex01
- In exercise directory, run
make
to make executable - Run executable like:
./phone
Note: each exercise will create executable with their own name and some of them require argument(s). In every Makefile there are at least this 4 rules
make
-> create all object files and executablemake clean
-> deletes all object files, but keep executablemake fclean
-> deletes all object files and executablemake re
-> deletes all object files and executable and then make them again
- cpp00 - simple stuff about c++ part 1/2
- cpp01 - simple stuff about c++ part 2/2
- cpp02 - operator overloading
- cpp03 - inheritance part 1/2
- cpp04 - inheritance part 2/2 and polymorphism
- cpp05 - exceptions
- cpp06 - c++ casts
- cpp07 - templates
- cpp08 - templated containers, iterators
- cpp09 - merge insertion sort, Reverse Polish Notation