Learning C++
- Learn I/O, iostream.
- Solve some problems in BAEKJOON with C++.
-
Learn a concept of class and object oriented programming.
-
Study from The Charno, Youtube channel.
-
Learn about an enum and apply the enum in the previous log_level.cpp file.
-
Constructor / Destructor
-
Linked list with class
-
Basic concept of Inheritance
-
Virtual function and override
- Pure virtual function
-
Visibility
-
Private, protected, public
-
Private : Only current class can see the members.
-
Protected : Current class and its subclasses can see the members.
-
public : Everyone can see the members.
-
-
new / delete
int *ptr = new int[5]; delete[] ptr;
-
new
allocate the data to the heap memory (general = stack). -
The data in heap does not end when they go out of namespace (
{ }
). -
We have to use
delete
ordelete[]
to clean up the memory.
-
-