How huiyzhou/ece309_f26 works
This repository is a collection of standalone C/C++ teaching examples, not a unified application. The user workflow is to select and run an example, which demonstrates a language or data-structure concept and, in sampled programs, prints results to standard output. The examples cover pointers and memory, object-oriented features, operator overloading, polynomial arithmetic, smart pointers, and linked-list-based containers. The README only describes the files as class examples; unsampled files are represented by their tree paths, without inferred runtime connections.
Main entry points: pointer1.c Pointer addresses · pointer2.c Pointer playground · mem_space.cpp Memory layout · ref_ex.cpp Value and references
Components 18
Language fundamentals
- Pointer addresses
pointer1.c - Pointer playground
pointer2.c - Memory layout
mem_space.cpp - Value and references
ref_ex.cpp - Function overloads
func_overload.cpp - Range examples
range_ex.cpp - Hello example
hello.cpp
Object-oriented examples
- Inheritance layout
Inheritance_data_layout.cpp - Inheritance composition
inheritance_composition_con_des.cpp - Complex operators
complex.cpp - Complex polynomial
polynomial.cpp - Templated polynomial
ploynomial_T_move.cpp
Containers and ownership
- Raw-pointer list
Singly_linked_list_r_5.cpp - Smart-pointer list
LinkedList_SmartPtr.cpp - Stack and queue
stack_queue.cpp - Custom smart pointers
my_own_smart_ptrs.cpp
Other components
- Learner
- Console output
Connections 24
- Learner → Pointer addresses: runs example
- Learner → Pointer playground: runs example
- Learner → Memory layout: runs example
- Learner → Value and references: runs example
- Learner → Complex operators: runs example
- Learner → Inheritance layout: runs example
- Learner → Raw-pointer list: runs example
- Learner → Smart-pointer list: runs example
- Learner → Stack and queue: runs example
- Learner → Custom smart pointers: runs example
- Learner → Complex polynomial: runs example
- Learner → Templated polynomial: runs example
- Pointer addresses → Console output: prints
- Pointer playground → Console output: prints
- Memory layout → Console output: prints
- Value and references → Console output: prints
- Complex operators → Console output: prints
- Inheritance layout → Console output: prints
- Raw-pointer list → Console output: prints
- Smart-pointer list → Console output: prints
- Stack and queue → Console output: prints
- Custom smart pointers → Console output: prints
- Complex polynomial → Console output: prints
- Templated polynomial → Console output: prints