Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- member function pointer
- std::vector
- std::endl
- pointer to member data
- suffix return type
- c++ multi chatting room
- discord bot
- virtual function
- vector capacity
- dynamic_cast
- virtual function table
- virtual destructor
- constructor
- this call
- virtual inheritance
- operator overloading
- std::ostream
- return by reference
- base from member
- vector size
- delete function
- new&delete
- std::cout
- conversion constructor
- c++ basic practice
- increment operator
- placement new
- 더 지니어스 양면포커
- C++
- diamond inheritance
Archives
- Today
- Total
목록Assignment Operator (1)
I'm FanJae.

※ 본 포스트는 코드누리 C++ Basic 강의 내용을 보고 정리한 포스트입니다. 1. 증가(++) 연산자(Increment Operator)#include class Point{public: int x{0}; int y{0}; Point() = default; Point(int x, int y) : x{x}, y{y} { }};int main(){ int n = 3; ++n; Point p{1,1}; ++p;}- 일반적으로 객체를 ++한다는 것이 조금 이상해 보일 수 있지만, 학습을 위해서 해보고자 한다.- 증가(++) / 감소(--) 연산자 재정의가 사용되는 예는 C++ 표준 라이브러리인 STL의 반복자가 사용한다. 1-1. 증감 연산자 재정의..
C++/Basic
2024. 8. 24. 21:35