You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jinho Kim edited this page Nov 24, 2022
·
3 revisions
오늘 구현한 것
오늘 cpp module 01을 통과하고 cpp module 02를 끝냈다.
cpp module 02에서는 복사 생성자, 복사 대입 연산자, 오버로딩!!에 대해 알아볼 수 있었던 것 같다.
직접 만든 객체는 ==, ++, * 같은 연산자들, 심지어 출력도 그냥 돌아가지 않는다.
그렇기에 사용할 연산자를 전부 오버로딩 해줘야한다.
처음에 복사 대입 연산자가 이해가 안되었는데 오버로딩이라는 것 자체가 이해가 잘 안되서 그랬던 것 같다.
이해하고 보니 그냥 노가다...라는 생각이 든다. 오늘도 밤이라 평가가 없다.
내일 02도 한 번에 통과했으면 좋겠다!