/CPP-Module-00

My solution for CPP Module 00 of the Common core of 42 school.

Primary LanguageC++MIT LicenseMIT

CPP-Module-00

This is my solution for the first module of the C++ modules of 42school.

result

List of all my cpp-modules

In general

C++ is a general-purpose programming language created by Bjarne Stroustrup as an extension of the C programming language, or "C with Classes" (source: Wikipedia).

This project was my first contact to write programms in C++.
All of those exercises are compilable with the -std=c++98-flag, since this was a requirement for this project.
All exercises where compiled and tested on macOS Catalina 10.15.7 and Ubuntu 20.04.4 LTS.

Exercise 00

The Goal of this exercise was to write a really simple c++ style programm, but without any classes yet, just to get familiar with the use of i.e. std::cout.

You can compile this project with make, make all or make re.
Then use it with ./megaphone "Argument_you_want_to_change_to_all_CAPS"

Exercise 01

This subject was a little more sophisticated than the one before.
First time using classes.

This programm resembles a phonebook, where you can store up to 8 contacts, and display the stored information during runtime.
When the programm is terminated in any way, all contacts are lost.
The phonebook also has instructions and descriptive error messages that tell you what to do and how to use it correctly.

Usage:

You can compile this project with make, make all or make re.
Then you can run it with ./phonebook.
After that, just follow the instructions of the phonebook.

Exercise 02

The scope of this exercise was to re-engineer the Account.cpp file from the given tests.cpp, Account.hpp and 19920104_091532.log files.

If you compare my output (my.log) with the original .log file, the only difference is the timestamp, which is expected.
Another difference will occure only when running it on macOS, where the order of the decronstruction is reversed.

You can compile this project with make, make all or make re.
Then you can run it with ./leak_information.