+
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
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载