/42-cpp

This first module of C++ is designed to help you understand the specifities of the language when compared to C. Time to dive into Object Oriented Programming!

Primary LanguageC++

42-cpp

You are allowed to use almost everything from the standard library https://en.cppreference.com/w/cpp/header

Wiki: https://github.com/qingqingqingli/CPP.wiki.git

Virtual base class (diamond): https://stackoverflow.com/a/21607

vtable error on Animal module 4: https://stackoverflow.com/a/3065223

subtype polymorphism: https://www.cs.cornell.edu/courses/JavaAndDS/files/PolymorphismSubtype.pdf

Heap vs Stack: Heap:

  • I need to manage the allocation/destruction by myself.
  • dynamic allocated into spaces

Stack:

  • is managed by compiler.
  • allocated in continuos block

STL: Standard Template Library

container: data structures algorithm: operations

Algorithms -> Iterator -> Container