My journey learning pointers in C++.
CPPointer # this repo
├── 00_Pointers # chapter 00
│ ├── CMakeLists.txt # cmake build intruction
│ ├── main.cpp # example code
│ └── README.md # chapter description
├── LICENSE
└── README.md # this file
Just pick any chapter, and read the README.md in the chapter.
After pick any chapter, you should create a build
folder and run cmake ..
in the build
folder.
Then build the code with cmake --build .
and run ./XX_CHAPTER
.
Or just
cmake .
cmake --build .
./XX_CHAPTER
Chapter | Description |
---|---|
00 | Introduction to basic pointer. |
01 | Passing functions arguments. |
02 | Array name as pointers. |
03 | Pointer arithmetic. |
04 | Pointer notation. |
05 | Pointer to pointer. |
06 | Void pointer. |
07 | Invalid pointer. |
08 | NULL pointer. |
09 | Constant pointer. |
10 | Constant pointer to constant. |
11 | Pointer to constant. |
12 | Dynamic memory. |