Program examples
- Moving object class v. 1
- The same Moving Object project split into separate files:
- The copy constructor and assignemtn operator:
- Static data members and static methods in robot.cpp
- Friend function for MovingObject class:
- Defining the PI constant pi.cpp
- How to use STL deque class to store pointers to objects of a class and sort these pointers.
deque_sample.cpp
- ComboBox example. This is a complete project in a ZIP archive.
- How to create a moving image using a sequence of changing images. This is a complete project in a .zip
archive: image_seq.zip
- Robot queue, fights and battle:
- Inheritance:
- Polymorphism:
- Error handling techniques:
- How to use MS Visual C++ exceptions (.zip archive).
- Smart Pointer example:
- Managed extensions
- simple __gc object,
- managed array,
- sorting managed arrays,
- multidemensional managed aray,
- ArrayList colection,
- __typeof() operator,
- overloading operators for a value type,
- overloading operators for a reference type,
- how to build an battle object queue using ArrayList,
- how to build a Robot queue using deriving it from ArrayList
- example of the Location class: Location.h,
Location.cpp.
Here you can find some images to use in graphical examples.