{"id":20315337,"url":"https://github.com/madebypixel02/cpp-module-00","last_synced_at":"2025-08-24T22:48:36.550Z","repository":{"id":59750146,"uuid":"447301359","full_name":"madebypixel02/CPP-Module-00","owner":"madebypixel02","description":"[42 Madrid] shhhhh... I think the students are asleep","archived":false,"fork":false,"pushed_at":"2022-12-04T15:44:33.000Z","size":1377,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T00:27:09.814Z","etag":null,"topics":["42","42-cpp-module","42-cursus","42born2code","42madrid","42school","born2code","cpp","dreams","makefile","megaphone","peer2peer","phonebook"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/madebypixel02.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-12T17:01:06.000Z","updated_at":"2025-01-24T14:57:20.000Z","dependencies_parsed_at":"2023-01-23T01:16:40.847Z","dependency_job_id":null,"html_url":"https://github.com/madebypixel02/CPP-Module-00","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/madebypixel02/CPP-Module-00","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madebypixel02%2FCPP-Module-00","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madebypixel02%2FCPP-Module-00/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madebypixel02%2FCPP-Module-00/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madebypixel02%2FCPP-Module-00/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/madebypixel02","download_url":"https://codeload.github.com/madebypixel02/CPP-Module-00/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madebypixel02%2FCPP-Module-00/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265281152,"owners_count":23739863,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["42","42-cpp-module","42-cursus","42born2code","42madrid","42school","born2code","cpp","dreams","makefile","megaphone","peer2peer","phonebook"],"created_at":"2024-11-14T18:18:50.695Z","updated_at":"2025-07-14T11:07:11.156Z","avatar_url":"https://github.com/madebypixel02.png","language":"C++","readme":"# CPP-Module-00 | 42 Madrid\n\n*shhhhh... I think the students are asleep 📣*\n\n### Table of Contents\n\n- [Introduction](#introduction)\n- [ex00. Megaphone](#ex00-megaphone)\n\t* [Example](#example)\n- [ex01. My Awesome PhoneBook](#ex01-my-awesome-phonebook)\n\t* [Example](#example-1)\n- [ex02. The Job Of Your Dreams](#ex02-the-job-of-your-dreams)\n\t* [Example](#example-2)\n- [Installation](#installation)\n- [References](#references)\n- [Summary](#summary)\n\n## Introduction\n\nThis is the first project we've ever done in C++. For this reason, things *will* start slow. In this first set of exercises we will learn about the basic syntax of C++, namespaces, classes, member functions, and several other new concepts. All in all, it's lots of basic stuff.\n\n## ex00. Megaphone\n\nThis first exercise is quite simple, we are asked to create a program that takes arguments and prints them back to the terminal in capital letters. If no arguments are provided the program will print out a default message, also in captial letters.\n\n### Example\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"https://user-images.githubusercontent.com/40824677/189324945-b80fb99d-3b0a-4986-9e1c-1529fa5b47f7.png\"\u003e\n\u003c/div\u003e\n\n## ex01. My Awesome PhoneBook\n\nThis second exercise is a bit more fun. We have to simulate a phonebook with a terminal interactive UI. We can **ADD** or **SEARCH** for contacts, and we can also **EXIT**, clearing the list of contacts and ending the program. The phonebook can receive up to 8 contacts, such that the 9th contact will replace the 1st contact, the 10th will replace the 2nd, and so on.\n\n### Example\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"https://user-images.githubusercontent.com/40824677/189323784-a732a276-86d6-4fa8-88f7-38eca47bce26.png\"\u003e\n\u003c/div\u003e\n\n## ex02. The Job Of Your Dreams\n\nIn this third and last exercise we are given two files which will help us build a class and all the necessary static and member functions so that the provided main function in **tests.cpp** creates the same output as the file **19920104_091532.log** (save the different timestamps). Our job is to figure out what the functions do to create the appropriate file **Account.cpp**. We are also given the header file containing the class definition in **Account.hpp**.\n\n### Example\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"https://user-images.githubusercontent.com/40824677/189324539-204da555-2662-444f-81a8-6a99d6136ebf.png\"\u003e\n\u003c/div\u003e\n\n## Installation\n\nFor this project and fututre C++ projects it is only required to have `clang` and/or `gcc`, which provide their respective compilers `clang++` and `g++`. It is also recommended to install the `valgrind` package on **Linux** for debugging purposes. Every exercise (unless specified otherwise) includes its own Makefile with the necessary instructions. In some cases certain tweaks needed to be made to ensure the most similar results in both **Linux** and **MacOS**.\n\n## References\n\n* [string C++ Reference](http://www.cplusplus.com/reference/string/string/)\n* [iomanip C++ Reference](http://www.cplusplus.com/reference/iomanip/)\n\n\n## Summary\nFor a first module, it was mostly easy, except for *ex02*, which was a bit tricky to understand at first.\n\nMay 16th, 2022\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadebypixel02%2Fcpp-module-00","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmadebypixel02%2Fcpp-module-00","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadebypixel02%2Fcpp-module-00/lists"}