GithubHelp home page GithubHelp logo

4_2_c_p_p_m_o_d_u_l_e's Introduction

CPP00

Table of Contents

ex00 - Megaphone

Key Concepts

  • Namespace
  • static_cast & dynamic_cast
  • String method length

ex01 - PhoneBook

Key Concepts

  • Class
  • Public & Private
  • Getter & Setter
  • Constructor & Destructor
  • List Initialization
  • Pretty Print (stew)
  • getline
  • String Methods: empty, substr, length
  • stringstream's str method
  • Managing Input Buffer: cin.clear, cin.eof, clearerr

ex02 - Account

Key Concepts

  • Class Static Variable
  • Time & localtime
  • Iterator: for_each, mem_fun_ref
  • pair
  • vector Methods: begin, end

CPP01

Table of Contents

ex00 - Zombie

Key Concepts

  • new & delete

ex01 - Zombie Horde

Key Concepts

  • Class array made by new

ex02 - Brain

Key Concepts

  • reference vs pointer

ex03 - HumanA & HumanB

Key Concepts

  • reference vs pointer (part 2)

ex04 - Implement Sed

Key Concepts

  • ifstream, ofstream, stringstream
  • is_open, close
  • c_str
  • rdbuf

ex05 - Harl

Key Concepts

  • this pointer
  • Function pointer array

ex06 - HarlFilter

Key Concepts

  • Switch statement with fallthrough

CPP02

Table of Contents

ex00 - Fixed-point Arithmetic

Key Concepts

  • Orthodox Canonical Form
  • Copy Constructor & Assignment Operator

ex01 - Fixed-point Arithmetic 2

Key Concepts

  • IEEE 754 Floating-Point Standard
  • Bitwise Operators: <<

ex02 - Fixed-point Arithmetic 3

Key Concepts

  • Operator Overloading

ex03 - BSP

Key Concepts

  • Determining if a Point is Inside a Triangle
  • Counter-Clockwise (CCW) Algorithm

CPP03

Table of Contents

ex00 - ClapTrap

Key Concepts

  • Base class for inheritance

ex01 - ScavTrap

Key Concepts

  • Derived class from ClapTrap
  • Inheritance
  • Virtual Destructor & Virtual Functions
  • Virtual Pointer
  • Protected Type

ex02 - FragTrap

Key Concepts

  • Derived class from ClapTrap

ex03 - DiamondTrap

Key Concepts

  • Handling Name Conflicts between Parent and Child Variables
  • Diamond Inheritance

Inheritance Diagram

        ClapTrap
        /     \
    ScavTrap  FragTrap
        \     /
       DiamondTrap

CPP04

Table of Contents

ex00 - Animal

Key Concepts

  • Consequences of not using virtual
  • Upcasting: const Animal* j = new Dog();

ex01 - Brain

Key Concepts

  • Composition Relationship
  • Deep Copy
  • Constructor & Destructor: Managing Brain
  • Avoiding Memory Leaks in Assignment Operator & Copy Constructor

ex02 - Abstract

Key Concepts

  • Pure Virtual Functions
  • Abstract Classes

ex03 - Materia

Key Concepts

  • Interfaces

4_2_c_p_p_m_o_d_u_l_e's People

Contributors

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