Recent posts

[C++] STL - Map, Set

November 03 2020

Binary Search ์ด๋ฏธ ์ •๋ ฌ๋˜์–ด ์žˆ๋Š” ๋ฐ์ดํ„ฐ๋ฅผ ๋Œ€์ƒ์œผ๋กœ ํƒ์ƒ‰ ์ค‘๊ฐ„ ๊ฐ’์ธ pivot์„ ๊ธฐ์ค€์œผ๋กœ left์™€ right์œผ๋กœ ๋‚˜๋ˆ„์–ด ํƒ์ƒ‰ ๊ฐ’์„ ์ฐพ์„ ๋•Œ๊นŒ์ง€ ์œ„์˜ ๊ณผ์ •์„ ๋ฐ˜๋ณต

[Misc] Compiled & Interpreted

November 02 2020

Compiled Language CPU๊ฐ€ ๋ฐ”๋กœ ์ดํ•ดํ•  ์ˆ˜ ์žˆ๋Š” ๊ธฐ๊ณ„์–ด๋กœ ์†Œ์Šค์ฝ”๋“œ๋ฅผ ๋ณ€ํ™˜ ์†Œ์Šค์ฝ”๋“œ ์ฒ˜๋ฆฌ์™€ ๋ถ„์„์— ๋งŽ์€ ์‹œ๊ฐ„ ์†Œ์š” ์ผ๋ฐ˜์ ์œผ๋กœ ์‹คํ–‰์ด ๋น ๋ฆ„ ์ปดํŒŒ์ผ๋œ ๊ธฐ๊ณ„์–ด๋Š” ํ”Œ๋žซํผ ์˜์กด์ 

[C++] Overriding๊ณผ Overloading

November 02 2020

Overloading ๊ฐ™์€ ์ด๋ฆ„์˜ ๋ฉ”์„œ๋“œ๋ฅผ ์—ฌ๋Ÿฌ ๊ฐœ ์ •์˜ ๋งค๊ฐœ๋ณ€์ˆ˜์˜ ํƒ€์ž…์ด ๋‹ค๋ฅด๊ฑฐ๋‚˜, ๊ฐฏ์ˆ˜๊ฐ€ ๋‹ค๋ฆ„ ๋ฆฌํ„ด ํƒ€์ž…์ด๋‚˜ ์ ‘๊ทผ ์ œ์–ด์ž๋Š” ์˜ํ–ฅ์„ ์ฃผ์ง€ ์•Š์Œ

[C++] if์™€ switch

July 16 2020

if ๊ฐ€์žฅ ์œ„ if ๊ตฌ๋ฌธ๋ถ€ํ„ฐ ์‹œ์ž‘ํ•ด ์กฐ๊ฑด์ด ์ถฉ์กฑ๋˜๋Š”์ง€ ์ปจ๋””์…˜ ์ฒดํฌ ๋А๋ฆฐ ์†๋„ if, else if ๊ฐ€ ๋งŽ์•„์งˆ์ˆ˜๋ก Assembly: CMP๋„ ๋งŽ์•„์ง ๋ฒ”์œ„ ์‹๋„ ์ฒดํฌ ๊ฐ€๋Šฅ

[C++] Shallow Copy vs. Deep Copy

July 16 2020

Shallow Copy ๊ฐ์ฒด๋ฅผ ๋ณต์‚ฌํ•  ๋•Œ ์›๋ž˜๊ฐ’๊ณผ ๋ณต์‚ฌ๋œ ๊ฐ’์ด ๊ฐ™์€ ์ฐธ์กฐ๋ฅผ ๊ฐ€๋ฆฌํ‚ค๊ณ  ์žˆ๋Š” ๊ฒƒ ๊ฐ์ฒด์˜ โ€˜๊ฐ’โ€™๋งŒ ๋ณต์‚ฌ

[C++] const๊ณผ volatile

July 15 2020

Read-Only ๋ณ€์ˆ˜์˜ ๊ฐ’์„ ๋ณ€๊ฒฝํ•  ์ˆ˜ ์—†๋‹ค ๋ฉ”์„œ๋“œ์—์„œ ํด๋ž˜์Šค์˜ ๋ฉค๋ฒ„ ๋ณ€์ˆ˜๋ฅผ ๋ณ€๊ฒฝํ•  ์ˆ˜ ์—†๋‹ค