Giter Site home page Giter Site logo

42course-cpp_modules's Introduction

C++ Modules

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

Content

Installation

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.

Module list

This module is an Introduction to C++ (Namespaces, Classes, Member Functions, Stdio Streams, Initalization Lists, Static and Const)

Ex00:Megaphone

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...

Ex01:My Awesome Phonebook

This exercise is about to Write a program that behaves like a crappy awesome phonebook software. We have to implement two classes:

PhoneBook

  • 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.

Contact

  • 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.

42course-cpp_modules's People

Contributors

jestebanpelaez18 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.