Welcome to C++ modules. A series of 35 exercises designed to introduce Object-Oriented Programming in C++. Each module delves into different aspects of C++ programming, offering a comprehensive understanding of the language. The content ranges from basic topics like C++ syntax to more complex and challenging concepts such as containers
Firts clone this repository in your current working directory.
git clone https://github.com/jestebanpelaez18/42Course-Cpp_Modules.git
Then go to the folder of the desire module and then to the desire folder exercise. For example:
cd cpp00
cd ex00
Each exercise has a Makefile, which you can use to compile the exercise. Use this command for compiling the exercise:
make
And finally run the executable:
./executable_name
Depend of the exercise and the goal of it, each has a main with different Tests.
This module is an Introduction to C++ (Namespaces, Classes, Member Functions, Stdio Streams, Initalization Lists, Static and Const)
This exercise is basically write a program that giving string as an argument we have to return, that string in upper case.
>$./Megaphone "shhhhh... I think the students are asleep..."
SHHHHH... I THINK THE STUDENTS ARE ASLEEP...
This exercise is about to Write a program that behaves like a crappy awesome phonebook software. We have to implement two classes:
- It has an array of contacts.
- It can store a maximum of 8 contacts. If the user tries to add a 9th contact, replace the oldest one by the new one.
- Please note that dynamic allocation is forbidden.
- Stands for a phonebook contact.
In the code, the phonebook must be instantiated as an instance of the PhoneBook class. Same thing for the contacts. Each one of them must be instantiated as an instance of the Contact class.
This module is about memory Allocation, Pointers To Members, References and Switch Statement
This module is about Ad-Hoc Polymorphism, Operator Overloading and Orthodox Canonical Class Form.
This module is about inheritance
This module is about subtype Polymorphism, Abstract Classes and Interfaces.
This module is about repetition an exception handling.
This module is about C++ Cast.
This module is about C++ templates.
This module is about templated containers, iterators, and algorithms.
This module is about more containers and his usage.