C++ 프로그래밍/자료구조와 알고리즘 17

[자료구조와 알고리즘] C++ : OOP

C++ : Object Oriented Programming (객체지향 언어) Ⅰ. Class의 정의 Ⅱ. OOP의 세 가지 특징 Ⅰ. Class의 정의 1. Class = Member's Varibles + Member's Function 2. Class = State (상태) + Method (행위) 3. Class = type, Object = Class's Instance Ⅱ. OOP의 세 가지 특징 (Object Oriented Programming) 1. Encapsulation (캡슐화) 2. Inheritance (상속) 3. Polymorphism (다형성) 1. Encapsulation (캡슐화) 상태와 행위를 가지는 객체로 모델링하는 것을 의미한다. 정보숨기기(Information H..

[자료구조와 알고리즘] C++ : C의 확장

C++ : C의 확장 이번 글에서는 앞서 다뤘던 C++ 기초 문법에 대한 내용들을 다시 한번 정리해 볼 것이다. ① Pointer vs Reference ② 새로운 메모리 할당 ③ Fuction Overloading ④ Default Parameter ⑤ Template ⑥ 기타 ① Pointer vs Reference Pointer란? : 메모리의 주소를 가리키는 변수이다. 32bit 환경에서 4byte의 크기를 가진다. Pointer의 규정요소? 주소(Address)와 유형(Type)으로 이루어져 있으며, 주소만 있는 포인터를 void pointer라고 한다. Pointer 연산 ① * : dereference operator ② & : address of operator ③ Pointer ± Int..