일관된 초기화
일관된 초기화: Uniform initialize 변수의 종류에 상관없이 동일한 방법으로 초기화 할 수 있게 하자 ```cpp struct Point { int x, y; }; class Complex { int re, im; public: Complex(int a, i...
C++ & Algorithms — 한국어 개발 블로그
일관된 초기화: Uniform initialize 변수의 종류에 상관없이 동일한 방법으로 초기화 할 수 있게 하자 ```cpp struct Point { int x, y; }; class Complex { int re, im; public: Complex(int a, i...
위임 생성자: Deligating constructor 본인의 다른 생성자를 호출하는 생성자 ```cpp #include
```cpp #include
사용자 정의 상수: 상수 값으로 사용자 정의 타입을 만들 수 있다. c++ 기본 상수 1.0f 2l “string”s: stl 사용자 정의 상수 1_m 2.0_dd “my st...
```cpp #include #include
```cpp #include #include #include
```cpp #include #include #include // find() 와 같은 함수가 여기에 있다.
싱글 리스트를 생각해 보자 ```cpp #include