This is my solution for the first module of the C++ modules of 42school.
- CPP-Module-00
- CPP-Module-01
- CPP-Module-02
- CPP-Module-03
- CPP-Module-04
- CPP-Module-05
- CPP-Module-06
- CPP-Module-07
- CPP-Module-08
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
.
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"
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.
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
.