๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

์ „์ฒด ๊ธ€115

[Stack] ์Šคํƒ - ๊ด„ํ˜ธ ์ง ๊ฒ€์‚ฌ ๊ด„ํ˜ธ ์ง์ด ๋งž๋Š”์ง€ ๊ฒ€์‚ฌ ์ž…๋ ฅ ๋˜๋Š” ๋ฌธ์ž์—ด์— ๋Œ€ํ•œ ์•„๋ž˜ ์š”๊ฑด์„ ๋งŒ์กฑํ•˜๋Š” ๊ด„ํ˜ธ ๊ฒ€์‚ฌ ํ”„๋กœ๊ทธ๋žจ์„ ๋งŒ๋“œ์‹œ์˜ค. ์†Œ๊ด„ํ˜ธ“()”, ์ค‘๊ด„ํ˜ธ“{}”, ๋Œ€๊ด„ํ˜ธ“[]” ์˜ ์ง์ด ๋งž๋Š”์ง€ ํ™•์ธ INPUT ”EOF“๋ฅผ ์ž…๋ ฅ ๋ฐ›์„ ๋•Œ๊นŒ์ง€ ๋ฌธ์ž์—ด์„ ์ž…๋ ฅ OUTPUT ๊ด„ํ˜ธ ๊ฒ€์‚ฌ ์„ฑ๊ณต ์—ฌ๋ถ€์— ๋”ฐ๋ผ ์ถœ๋ ฅ๋ฌธ์€ ์•„๋ž˜์™€ ๊ฐ™๊ณ  ์˜ค๋ฅ˜ ์‹œ ์˜ค๋ฅ˜๊ฐ€ ์ƒ๊ธด ๋ฌธ์žฅ์˜ ๋ผ์ธ,๋ฌธ์ž๊นŒ์ง€๋งŒ ์ธ์ • 1) ์„ฑ๊ณต : OK, Line_count : (๋ฌธ์žฅ ์ˆ˜), bracket_count : **(๊ด„ํ˜ธ ์ง ์ˆ˜)** 2) ์˜ค๋ฅ˜ : Error, Line_count : (๋ฌธ์žฅ ์ˆ˜), bracket_count : (๊ด„ํ˜ธ ์ง ์ˆ˜) - ์•„๋ž˜ main ํ•จ์ˆ˜๋ฅผ ์ฐธ์กฐํ•˜์—ฌ checkMatching() ํ•จ์ˆ˜๋ฅผ ๋งŒ๋“œ์‹œ์˜ค. int main(){ std::string Str,temp; while(t.. 2023. 7. 3.
์ด๋ฏธ ์‚ฌ์šฉ์ค‘์ธ ํฌํŠธ ์—๋Ÿฌ https://deeplify.dev/back-end/spring/port-is-already-in-use [์Šคํ”„๋ง/Spring] Port 8080 is already in use ์—๋Ÿฌ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ• ์Šคํ”„๋ง์—์„œ ๊ฐ€๋” ๋ฐœ์ƒํ•˜๋Š” 8080 ํฌํŠธ๋Š” ์ด๋ฏธ ์‚ฌ์šฉ์ค‘์ด๋ผ๋Š” ์—๋Ÿฌ์— ๋Œ€ํ•ด์„œ ์•Œ์•„๋ณด๊ณ  ํ•ด๊ฒฐํ•˜๋Š” ๋ฐฉ๋ฒ•๊นŒ์ง€ ์•Œ์•„๋ณด๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. deeplify.dev ใ„ด ์‚ฌ์ดํŠธ ์ฐธ๊ณ ! 2023. 7. 3.
[intellij]๊ธฐ์–ตํ•˜๊ณ  ์‹ถ์€ ๋‹จ์ถ•ํ‚ค (Mac) ๐Ÿ’ก ์ž๋™ ์ž„ํฌํŠธ(Auto Import) : Opt+Enter ๐Ÿ’ก ํ€ต ํ”ฝ์Šค ์ œ์•ˆ : Opt+Enter ๐Ÿ’ก ์ž๋™์œผ๋กœ ๋’ท๋ฌธ์žฅ ์™„์„ฑ ์‹œํ‚ค๊ณ  ๋‹ค์Œ์ค„๋กœ ๋„˜์–ด๊ฐ€๊ธฐ : Command+Shift+Enter ๐Ÿ’ก ๋ณต๋ถ™ํ•˜๊ณ  ์‹ถ์€ ๋ถ€๋ถ„ ๋“œ๋ž˜๊ทธํ•ด์„œ ๊ทธ ๋ฐ‘์— ๋˜‘๊ฐ™์ด ๋ณต๋ถ™ํ•˜๊ธฐ : command + D ๐Ÿ’ก ํ•จ์ˆ˜๋กœ ๋งŒ๋“ค๊ณ  ์‹ถ์€๋ถ€๋ถ„ ๋“œ๋ž˜๊ทธํ•ด์„œ ํ•จ์ˆ˜๋กœ ์ถ”์ถœํ•˜๊ธฐ : ^ + T ํ•˜๊ณ  Extract method์„ ํƒ ๐Ÿ’ก ํŒŒ๋ผ๋ฏธํ„ฐ ์ •๋ณด ๋ณด๊ธฐ : command + P ๐Ÿ’ก Generate : command + N (aka.getter and setter ๋‹จ์ถ•ํ‚ค, ์ƒ์„ฑ์ž ์ƒ์„ฑ, toString() ์ƒ์„ฑ) ๐Ÿ’ก inline Variable : command + option + N (aka.๋ฐ˜ํ™˜ํ•  ๋ณ€์ˆ˜์— ๋‘๊ณ  ๋ˆ„๋ฅด๋ฉด Return์— ํ•œ์ค„๋กœ ๋งŒ๋“ค์–ด์คŒ) ๐Ÿ’ก ๋ณ€์ˆ˜ .. 2023. 7. 3.
Spring - ๋นŒ๋“œํ•˜๊ณ  ์‹คํ–‰ํ•˜๊ธฐ ํ„ฐ๋ฏธ๋„๋กœ ์ด๋™ 1. ./gradlew build 2. cd build/libs 3. java -jar hello-spring-0.0.1-SNAPSHOT.jar 4. ์‹คํ–‰ ํ™•์ธ 2023. 7. 3.