Skip to content

pmh9960/LEARN-CPP-2020

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LEARN-CPP-2020

Learning C++

Day 1

  • Learn I/O, iostream.

Day 2

  • Solve some problems in BAEKJOON with C++.

Day 3

  • Learn a concept of class and object oriented programming.

  • Study from The Charno, Youtube channel.

Day 4

  • Learn about an enum and apply the enum in the previous log_level.cpp file.

  • Constructor / Destructor

  • Linked list with class

Day 5

  • Basic concept of Inheritance

  • Virtual function and override

    • Pure virtual function
  • Visibility

    • Private, protected, public

      1. Private : Only current class can see the members.

      2. Protected : Current class and its subclasses can see the members.

      3. public : Everyone can see the members.

    • new / delete

      int *ptr = new int[5];
      delete[] ptr;
      1. new allocate the data to the heap memory (general = stack).

      2. The data in heap does not end when they go out of namespace ({ }).

      3. We have to use delete or delete[] to clean up the memory.

About

Learning C++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published