변수와 기본 타입
C++의 기본 타입 크기와 플랫폼 의존성, `auto` 타입 추론, `const`와 `constexpr`의 차이, 중괄호 초기화가 좁히기 변환을 막는 이유를 정리합니다.
int count = 42;
double ratio = 0.75;
bool ready = true;
std::int32_t id = 1001; // 크기 고정 타입
auto name = std::string{"RefDock"}; // 우변에서 타입 추론
const auto pi = 3.14159; // const 추론
constexpr int MAX_N = 100; // 컴파일 타임 상수