How wajzy/gkxb_intm119 works
This repository is a collection of C++ object-oriented programming lecture examples, not one integrated application. Its user-to-result workflows are independent programs: a demo’s main function constructs or exercises an example and prints results. The graph highlights dynamic strings, shape hierarchies, event listeners, and representative language/container examples. The README gives only the course purpose; many files were not sampled, so omitted links do not imply those examples lack internal behavior.
Main entry points: main.cpp Polymorphic demo · eventMain.cpp Event demo · main15.cpp Cached area demo · ClickListener.hpp Click listener
Components 31
Dynamic strings
- String demo
gy02/main.cpp - Dynamic string
gy02/dinstr.cpp
Shape examples
- Shape demo
gy03/main.cpp - Basic shapes
gy03/rectangle.h - Polymorphic demo
gy04/main.cpp - Shape base
gy04/shape.h - Rectangle
gy04/rectangle.h - Filled rectangle
gy04/filledrectangle.h - Circle
gy04/circle.h - Filled circle
gy04/filledcircle.h - Cached area demo
ea02/main15.cpp - Cached shape
ea02/Shape15.hpp - Rectangle 15
ea02/Rectangle15.hpp - Triangle 15
ea02/Triangle15.hpp
Event handling
- Event demo
ea02/eventHandling/eventMain.cpp - Button
ea02/eventHandling/Button.hpp - Click listener
ea02/eventHandling/ClickListener.hpp - Click event
ea02/eventHandling/ClickEvent.hpp - Click counter
ea02/eventHandling/ClickCounter.hpp - Console logger
ea02/eventHandling/ConsoleLogger.hpp
C++ examples
- Complex numbers
ea03/Complex4.h - Time example
ea03/Time.h - Stack example
ea04/Stack2.h - Exception examples
ea04/trycatch1.cpp - Iterator interface
ea05/Iterator.h - Linked list
ea05/LinkedList.h - Message collection
ea05/Message5.h - STL demos
ea05/vectorDemo.cpp - Inheritance examples
ea02/inheritance03.cpp - Intro example
gy01/main.cpp
Other components
- Learner
Connections 33
- Learner → String demo: runs
gy02/main.cpp - String demo → Dynamic string: uses
gy02/main.cpp - String demo → Dynamic string: prints
gy02/main.cpp - Learner → Shape demo: runs
gy03/main.cpp - Shape demo → Basic shapes: constructs
gy03/main.cpp - Shape demo → Basic shapes: draws
gy03/main.cpp - Learner → Polymorphic demo: runs
gy04/main.cpp - Polymorphic demo → Rectangle: constructs
gy04/main.cpp - Polymorphic demo → Filled rectangle: constructs
gy04/main.cpp - Polymorphic demo → Circle: constructs
gy04/main.cpp - Polymorphic demo → Filled circle: constructs
gy04/main.cpp - Polymorphic demo → Shape base: draws
gy04/main.cpp - Rectangle → Shape base: inherits
gy04/rectangle.h - Circle → Shape base: inherits
gy04/circle.h - Filled rectangle → Rectangle: inherits
gy04/filledrectangle.h - Filled circle → Circle: inherits
gy04/filledcircle.h - Learner → Cached area demo: runs
ea02/main15.cpp - Cached area demo → Cached shape: uses
ea02/main15.cpp - Cached area demo → Rectangle 15: uses
ea02/main15.cpp - Cached area demo → Triangle 15: uses
ea02/main15.cpp - Rectangle 15 → Cached shape: inherits
ea02/Rectangle15.hpp - Triangle 15 → Cached shape: inherits
ea02/Triangle15.hpp - Learner → Event demo: runs
ea02/eventHandling/eventMain.cpp - Event demo → Button: subscribes
ea02/eventHandling/eventMain.cpp - Event demo → Console logger: registers
ea02/eventHandling/eventMain.cpp - Event demo → Click counter: registers
ea02/eventHandling/eventMain.cpp - Event demo → Button: dispatches clicks
ea02/eventHandling/eventMain.cpp - Button → Click listener: accepts
ea02/eventHandling/Button.hpp - Click listener → Click event: receives
ea02/eventHandling/ClickListener.hpp - Click counter → Click listener: implements
ea02/eventHandling/ClickCounter.hpp - Console logger → Click listener: implements
ea02/eventHandling/ConsoleLogger.hpp - Linked list → Iterator interface: uses
ea05/LinkedList.h - Message collection → Iterator interface: uses
ea05/Message5.h