Skip to content
/ Cpp00 Public

Cpp00 module from 42, on Namespaces, classes, member functions, stdio streams, initialization lists, static, const, and some other basic stuf

Notifications You must be signed in to change notification settings

AlexLav3/Cpp00

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Cpp00 module from 42, on Namespaces, classes, member functions, stdio streams, initialization lists, static, const, and some other basic stuf

General Requirements:

-Wall -Werror -Wextra and -std=c++98 flags 
-C++11 (and derived forms) and Boost libraries are forbidden.
-using namespace and friend is not allowed

Ex00:

A small program to output the string in the required format if any is string given, otherwise, the output has to write: * LOUD AND UNBEARABLE FEEDBACK NOISE *

Exercise was required to be done in a "C++ manner".

Ex01

Making a program as a crappy old phonebook with 2 classes, phonebook and contacts.

Phonebook can store a maximum of 8 contacts. If the user tries to add a 9th contact, the oldest is replaced with the new one. No Dynamic Allocation is allowed.

The program has the following commands: ADD, SEARCH, EXIT, anything else is ignored. Personally, I also used !std::cin to deal with Ctr+D or it would go in a loop, although there are other approaches.

ADD adds a new contact. SEARCH displays a specific contact that is given by input by its index. Formatting on how the contacts are displayed was done as required by the exercise EXIT closes the program.

The exercise gave freedom on how to design the classes, member functions etc.

About

Cpp00 module from 42, on Namespaces, classes, member functions, stdio streams, initialization lists, static, const, and some other basic stuf

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published