Skip to content

ngtina99/cpp08

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

No releases published

Packages

No packages published