일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- RootMotion
- NRVO
- winapi
- 언리얼엔진5
- Frustum
- IFileDialog
- C
- const
- UnrealEngine5
- 백준
- 줄 세우기
- Programmers
- Unreal Engine5
- UnrealEngine4
- RVO
- softeer
- DeferredRendering
- 프로그래머스
- algorithm
- baekjoon
- DirectX11
- C++
- 2294
- 1563
- 오블완
- 티스토리챌린지
- 팰린드롬 만들기
- GeeksForGeeks
- directx
- UE5
- Today
- Total
목록분류 전체보기 (726)
Game Develop
제목을 다시 바꿔말하면.. 멤버 초기화 리스트를 사용해 멤버변수들을 초기화하자. C++규칙에 의하면 어떤 객체이든 그 객체의데이터 멤버는 '생성자의 본문'이 실행되기 전에 초기화되어야 한다고 명시되어있다. Foo::Foo(const string& name, const int count) { this->m_Name = name; this->m_Count = count; } 위 코드에서 멤버변수들은 초기화되었는가? 아니다. '생성자의 본문'이 실행되기 전에 초기화 되어야 한다고 되어있는데, 위 코드는 본문에서 멤버변수에 '대입'을 했을 뿐이다. 그리고 좀 더 정확히는 저 대입연산을 하기전에 멤버변수들의 기본생성자들이 호출되어서 값을 초기화했을 것이다.근데 m_C..
https://www.acmicpc.net/problem/2295 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566#include iostream>#include string>#include map>#include vector>#include algorithm>#include math.h>#include queue>#include functional>#include sstream>#include memory.h>#include deque>#include set>#include unordered_set>#include thread>#i..
https://www.acmicpc.net/problem/8983 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677#include iostream>#include string>#include map>#include vector>#include algorithm>#include math.h>#include queue>#include functional>#include sstream>#include memory.h>#include deque>#include set>#include unordered_..
https://www.acmicpc.net/problem/2015 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748#include iostream>#include string>#include map>#include vector>#include algorithm>#include math.h>#include queue>#include functional>#include sstream>#include memory.h>#include deque>#include set>#include unordered_set>#include thread>#include atomic> using namespace std; ..
https://www.acmicpc.net/problem/24479 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273#include iostream>#include string>#include map>#include vector>#include algorithm>#include math.h>#include queue>#include functional>#include sstream>#include memory.h>#include deque>#include set>#include unordered_set>#in..
https://www.acmicpc.net/problem/11562 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677#include iostream>#include string>#include map>#include vector>#include algorithm>#include math.h>#include queue>#include functional>#include sstream>#include memory.h>#include deque>#include set>#include unordered_..
https://www.acmicpc.net/problem/16638 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551..
https://www.acmicpc.net/problem/1174 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657#include iostream>#include string>#include map>#include vector>#include algorithm>#include math.h>#include queue>#include functional>#include sstream>#include memory.h>#include deque>#include set>#include unordered_set>#include thread>#include atomic> us..