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 | 31 |
Tags
- diamond inheritance
- placement new
- C++
- std::endl
- pointer to member data
- operator overloading
- conversion constructor
- c++ basic practice
- base from member
- discord bot
- virtual destructor
- virtual inheritance
- this call
- return by reference
- std::ostream
- new&delete
- std::vector
- member function pointer
- increment operator
- virtual function
- std::cout
- 더 지니어스 양면포커
- constructor
- virtual function table
- dynamic_cast
- vector capacity
- delete function
- c++ multi chatting room
- vector size
- suffix return type
Archives
- Today
- Total
목록reference (1)
I'm FanJae.
※ 본 포스트는 코드누리 C++ Basic 강의 내용을 보고 정리한 포스트입니다. 1. Reference(참조) 1-1. Reference의 정의#include int main(){ int n = 10; int* p = &n; int& r = n; r = 20; std::cout - C 언어에서는 변수의 주소값을 담을 수 있는 Pointer라는 것이 있다.- C++에서는 포인터와 유사한 형태의 Reference라는 기능이 존재한다. (유사한 것이 결코 같은게 아니다.)- 포인터 변수를 선언하는 것처럼 다음과 같이 선언이 가능하다.int &r = n; - Reference란, 이미 존재하는 변수(메모리)에 대한 추가적인 별칭을 부여하는 문법이다.- 기존 포..
C++/Basic
2024. 8. 9. 13:55