[C++] Reference์ Pointer์ ์ฐจ์ด
์ด๊ธฐํ (Initialization) ```c++ // Must initialize the reference at the first int& ra; // Wrong int& ra = a; // Correct
์ด๊ธฐํ (Initialization) ```c++ // Must initialize the reference at the first int& ra; // Wrong int& ra = a; // Correct
Read-Only ๋ณ์์ ๊ฐ์ ๋ณ๊ฒฝํ ์ ์๋ค ๋ฉ์๋์์ ํด๋์ค์ ๋ฉค๋ฒ ๋ณ์๋ฅผ ๋ณ๊ฒฝํ ์ ์๋ค
ํจ์์ ์๋
An integer int a;
ํจ์์ static ๋ณ์ ํจ์ ์์์ ์ ์ธ๋ static ๋ณ์ ๊ฐ์ด ๊ณ ์ ๋จ multi-thread hardware interrupt timer
C์ malloc๊ณผ C++ new์ ์ฐจ์ด
Class์ ์ฌ์ด์ฆ
C/C++ ๋ฉ๋ชจ๋ฆฌ ๋ ์ด์์ Text segment ๊ธฐ๊ณ์ด๋ก ๋ณํ๋ ์คํ์ฝ๋๊ฐ ๋ฉ๋ชจ๋ฆฌ or obj์ ์ ์ฅ
static_cast ๋ ผ๋ฆฌ ํ๋ณํ ์ฃผ๋ก Scalar Type๋ค ๊ฐ์ ์บ์คํ ํ ๋ณํ ํจ์๊ฐ ์ ์๋์ด ์์ผ๋ฉด ์ด ํจ์๋ฅผ ํธ์ถํ๋ฉด์ ์คํ ์ฐ์ฐ์ ์ค๋ฒ๋ก๋ฉ์ ํตํ์ฌ ๋ณํ ๊ฐ๋ฅํ ์๋ฃํ์ ์ถ๊ฐํ ์ ์๋ค ์ปดํ์ผ ํ์์์ ์บ์คํ
์ปค์คํ 3D ํ๋ ์์ํฌ - v2