Skip to content
/ cpp02 Public

The project requires the use of ad-hoc polymorphism, operator overloading, Orthodox Canonical class form, and vector calculations.

Notifications You must be signed in to change notification settings

ngtina99/cpp02

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

17 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

C++ Module 02

This module focuses on ad-hoc polymorphism, operator overloading, and the Orthodox Canonical class form in C++. You will build a fixed-point number class and expand it with arithmetic operations, comparisons, and geometric usage.


๐Ÿ› ๏ธ Usage

For each exercise, navigate to its folder, compile, and run:

๐Ÿ“‚ ex00

cd ex00
make
./fixed

๐Ÿ“‚ ex01

cd ex01
make
./fixedUseful

๐Ÿ“‚ ex02

cd ex02
make
./fixedOperators

๐Ÿ“‚ ex03

cd ex03
make
./bsp

๐Ÿ“ Exercise Descriptions

ex00 โ€” My First Class in Orthodox Canonical Form: Build a Fixed class with raw value handling, canonical form methods, and debug messages.

ex01 โ€” Towards a More Useful Fixed-Point Number Class: Add int and float constructors, conversions, and an insertion (<<) operator.

ex02 โ€” Now Weโ€™re Talking: Add comparison, arithmetic, increment/decrement operators, plus static min/max functions.

ex03 โ€” BSP: Use the Fixed class in geometric computations to check if a point is inside a triangle.

๐Ÿ’ผ Connect

If you have any questions or suggestions, feel free to connect: ๐Ÿ”— LinkedIn: Valentina Nguyen ๐Ÿ™‹โ€โ™€๏ธ

๐Ÿ–ฅ๏ธ System Compatibility

This project was developed and tested on Linux (Ubuntu).

About

The project requires the use of ad-hoc polymorphism, operator overloading, Orthodox Canonical class form, and vector calculations.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published