Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

27 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

C++ Module 08

This module focuses on templated containers, iterators, algorithms, and custom adaptations of standard containers in C++.

๐Ÿ› ๏ธ Usage

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

๐Ÿ“‚ ex00

cd ex00
make
./ex00

๐Ÿ“‚ ex01

cd ex01
make
./ex01

๐Ÿ“‚ ex02

cd ex02
make
./ex02

๐Ÿ“ Exercise Descriptions

ex00 โ€” Easy find: Write a template function easyfind() that searches for an integer in any integer container. Return the found value or handle not found via exception or error.

ex01 โ€” Span: Implement a Span class storing up to N integers. Provide:

addNumber() to add one number

shortestSpan() and longestSpan() to calculate minimal/maximal differences

A method to add a range of numbers using iterators (for bulk filling, e.g., 10,000+ numbers)

ex02 โ€” Mutated abomination: Create a MutantStack class inheriting from std::stack but exposing iterators (begin() / end()). This makes the stack iterable like standard containers.

๐Ÿ’ผ 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 covers templated containers, iterators, and standard algorithms.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages