Skip to content
/ cpp09 Public

This module taught me to apply the C++ Standard Template Library (STL), using containers, iterators, and algorithms.

Notifications You must be signed in to change notification settings

ngtina99/cpp09

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

26 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

C++ Module 09

This module focuses on mastering the C++ Standard Template Library (STL), using standard containers, iterators, and algorithms to solve complex problems efficiently.

๐Ÿ› ๏ธ Usage

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

๐Ÿ“‚ ex00

cd ex00
make
./btc

๐Ÿ“‚ ex01

cd ex01
make
./RPN

๐Ÿ“‚ ex02

cd ex02
make
./PmergeMe

๐Ÿ“ Exercise Descriptions

ex00 โ€” Bitcoin Exchange: Create a program btc that reads a date/value file and calculates the bitcoin value on that date using historical exchange rates. If the date isnโ€™t present, use the closest lower date. Handle bad inputs with error messages.

ex01 โ€” Reverse Polish Notation (RPN): Create an RPN calculator program to evaluate reverse Polish mathematical expressions (e.g., 8 9 * 9 -). Only support single-digit numbers in the input, and handle operations +, -, /, *. Invalid expressions must output an error.

ex02 โ€” PmergeMe: Implement the Ford-Johnson merge-insert sort (merge-insert sort) using two different STL containers. Sort large sequences (3000+ integers) and measure the time taken for sorting with each container, displaying both the unsorted and sorted sequences.

๐Ÿ’ผ 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

This module taught me to apply the C++ Standard Template Library (STL), using containers, iterators, and algorithms.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published