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

๋ถ„๋ฅ˜ ์ „์ฒด๋ณด๊ธฐ443

[Python IDE] ํŒŒ์ด์ฐธ(PyCharm) ์„ค์น˜ ๋ฐ ์กฐ๊ฑด ์„ค์ • ๋ฐฉ๋ฒ• # ํŒŒ์ด์ฐธ(PyCharm) ์„ค์น˜ ๋ฐ ์กฐ๊ฑด ์„ค์ • ๋ฐฉ๋ฒ• 1. https://www.jetbrains.com/ko-kr/pycharm/download/#section=windows ๋กœ ์ ‘์† ํ›„ '๋‹ค์šด๋กœ๋“œ' ๋ฒ„ํŠผ ํด๋ฆญ 2. ํŒŒ์ผ์˜ ๋‹ค์šด์ด ์™„๋ฃŒ๋˜์—ˆ๋‹ค๋ฉด exe ํŒŒ์ผ ์‹คํ–‰ --> Next ํด๋ฆญ 3. 'Browse' ๋ฅผ ํด๋ฆญํ•˜์—ฌ ์›ํ•˜๋Š” ์ €์žฅ ๊ฒฝ๋กœ ์ง€์ • ํ›„ Next ํด๋ฆญ 4. ์„ค์ •์€ ์•„๋ž˜์™€ ๊ฐ™์ด ๋ชจ๋‘ ์„ ํƒํ•œ ํ›„ Next ํด๋ฆญ 5. ์‹œ์ž‘ ๋ฉ”๋‰ด ์„ค์ •์˜ ๊ฒฝ์šฐ ๊ธฐ๋ณธ๊ฐ’์œผ๋กœ ์œ ์ง€ํ•œ ํ›„ Install ํด๋ฆญ 6. ํŒŒ์ด์ฐธ์˜ ์„ค์น˜๊ฐ€ ์™„๋ฃŒ๋œ ํ›„ Finish ๋ฒ„ํŠผ ํด๋ฆญ --> ์•„๋ž˜์™€ ๊ฐ™์ด ๋ฐ”ํƒ•ํ™”๋ฉด์— PyCharm ๋ฐ”๋กœ๊ฐ€๊ธฐ๊ฐ€ ์ƒ์„ฑ๋œ ๊ฒƒ์„ ํ™•์ธ 2023. 2. 16.
[VScode] Visual Studio Code ์—์„œ ํ•œ๊ธ€ ํฐํŠธ๊ฐ€ ๊นจ์ง€๋Š” ๊ฒฝ์šฐ # Visual Studio Code ์—์„œ ํ•œ๊ธ€ ํฐํŠธ๊ฐ€ ๊นจ์ง€๋Š” ๊ฒฝ์šฐ 1. VScode ์˜คํ”ˆ ํ›„ ์„ค์ •์œผ๋กœ ์ด๋™ ( ๋‹จ์ถ•ํ‚ค๋Š” Ctrl+, ) 2. ๊ฒ€์ƒ‰๋ž€์— 'encoding' ์ž…๋ ฅ ํ›„ ์•„๋ž˜์™€ ๊ฐ™์ด ์„ค์ • 3. VScode ๋ฅผ ๋‹ค์‹œ ์‹œ์ž‘ํ•˜๋ฉด ์•„๋ž˜์™€ ๊ฐ™์ด ๋ฌธ์ œ๊ฐ€ ํ•ด๊ฒฐ๋จ์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ๋‹ค. 2023. 2. 15.
[Windows] ์œˆ๋„์šฐ ํ™˜๊ฒฝ์—์„œ ํ™”๋ฉด ๋…นํ™”ํ•˜๋Š” ๋ฐฉ๋ฒ• # ์œˆ๋„์šฐ ํ™˜๊ฒฝ์—์„œ ํ™”๋ฉด ๋…นํ™”ํ•˜๋Š” ๋ฐฉ๋ฒ• 1. ์œˆ๋„์šฐ ํ‚ค + ์•ŒํŒŒ๋ฒณ G ํ‚ค ํด๋ฆญ 2. ์ขŒ์ธก ์ƒ๋‹จ '์บก์ณ' ๋ถ€๋ถ„์˜ ๋™๊ทธ๋ผ๋ฏธ ํด๋ฆญ --> ๋…นํ™” ์‹œ์ž‘ 3. '์บก์ณ ์ƒํƒœ' ๋ถ€๋ถ„์˜ ํŒŒ๋ž€์ƒ‰ ๋™๊ทธ๋ผ๋ฏธ ์„ ํƒ ํ›„ '๊ฒŒ์ž„ ํด๋ฆฝ ๋…นํ™”๋จ' ํŒ์—… ํด๋ฆญ --> ๋…นํ™” ์ค‘์ง€ 4. ๊ฐค๋Ÿฌ๋ฆฌ ์ด๋™ ํ›„ ๋™์˜์ƒ ํŒŒ์ผ ์œ„์น˜ ํ™•์ธ --> ์•„๋ž˜์™€ ๊ฐ™์€ ํ™”๋ฉด์ด ๋‚˜์˜จ๋‹ค๋ฉด ๋™์˜์ƒ์ด ์ •์ƒ์ ์œผ๋กœ ์ €์žฅ๋œ ๊ฒƒ 2023. 2. 4.
[๋ˆ„๊ตฌ๋‚˜ ์‰ฝ๊ฒŒ ์ฆ๊ธฐ๋Š” C ์–ธ์–ด ์ฝ˜์„œํŠธ - ๊ฐœ์ • 3ํŒ] 14์žฅ Programming ํ’€์ด # 14์žฅ Programming ํ’€์ด 547p_1๋ฒˆ) #include #define DEBUG // Line 2๋ฅผ ์ฃผ์„์ฒ˜๋ฆฌํ•˜๋ฉด ๋งคํฌ๋กœ ์ •์˜๊ฐ€ ํ•ด์ œ๋จ void cal(int *ptr) { int sum = 0; #ifdef DEBUG printf("๋ฐฐ์—ด array๋กœ๋ถ€ํ„ฐ ๋ฐ›์•„์˜จ ๋งค๊ฐœ๋ณ€์ˆ˜: \n"); for (int i = 0; i < 8; i++) { if (i == 7) { printf("%d ", ptr[i]); } else { printf("%d, ", ptr[i]); } } printf("\n\n"); #endif for (int i = 0; i < 8; i++) { sum += ptr[i]; #ifdef DEBUG printf("%d๋ฅผ ๋”ํ•˜๋Š” ์ค‘\n", ptr[i]); #endif } printf(.. 2023. 2. 4.
[C ์–ธ์–ด] gets_s() ํ•จ์ˆ˜ ์‚ฌ์šฉ ์‹œ ์ž…๋ ฅ์ด ๋˜์ง€ ์•Š๊ฑฐ๋‚˜ ์ž…๋ ฅ๊ฐ’์ด ๋ฌด์‹œ๋  ๋•Œ: rewind(stdin) # gets_s() ํ•จ์ˆ˜ ์‚ฌ์šฉ ์‹œ ์ž…๋ ฅ์ด ๋˜์ง€ ์•Š๊ฑฐ๋‚˜ ์ž…๋ ฅ๊ฐ’์ด ๋ฌด์‹œ๋  ๋•Œ C ์–ธ์–ด๋ฅผ ํ†ตํ•œ ์ฝ”๋”ฉ์—์„œ ์‚ฌ์šฉ์ž๋กœ๋ถ€ํ„ฐ ๋ฌธ์ž์—ด์„ ์ž…๋ ฅ๋ฐ›๊ธฐ ์œ„ํ•ด gets_s() ํ•จ์ˆ˜๋ฅผ ํ”ํžˆ ์‚ฌ์šฉํ•œ๋‹ค. ํ•˜์ง€๋งŒ ํ•จ์ˆ˜ ์‚ฌ์šฉ ์ค‘ ์•„๋ž˜์™€ ๊ฐ™์ด ์ž…๋ ฅ์ด ๋˜์ง€ ์•Š๊ฑฐ๋‚˜ ์ž…๋ ฅ๊ฐ’์ด ๋ฌด์‹œ๋˜๋Š” ๊ฒฝ์šฐ๊ฐ€ ๋ฐœ์ƒํ•  ์ˆ˜ ์žˆ๋‹ค. ์œ„ ์ฝ”๋“œ์˜ ํ”„๋กœ๊ทธ๋žจ์„ ์ž‘๋™์‹œํ‚ค๋ฉด ์•„๋ž˜์™€ ๊ฐ™์ด ์ €์ž ์ด๋ฆ„์„ ์ž…๋ ฅํ•˜๋Š” ๊ณผ์ •์ด ์ƒ๋žต๋˜๊ณ  ๊ณง๋ฐ”๋กœ ๋‹ค์Œ ๋ฃจํ”„๊ฐ€ ์‹คํ–‰๋œ ๊ฒƒ์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ๋‹ค. ( gets_s() ํ•จ์ˆ˜์˜ ์ž…๋ ฅ์ด ์ •์ƒ์ ์ด์ง€ ์•Š์Œ ) ์ด๋Ÿฐ ๊ฒฝ์šฐ๋Š” rewind(stdin)์„ ์ด์šฉํ•ด ํ•ด๊ฒฐ์ด ๊ฐ€๋Šฅํ•˜๋‹ค. # rewind(stdin) : rewind()๋Š” ์ŠคํŠธ๋ฆผ์˜ ์œ„์น˜๋ฅผ ์„ค์ •ํ•˜๊ธฐ ์œ„ํ•œ ํ•จ์ˆ˜๋กœ, ๊ธฐ๋ณธํ˜•์€ ์•„๋ž˜์™€ ๊ฐ™๋‹ค. void rewind( FILE * stream ) rewind() ํ•จ์ˆ˜์— ํ‘œ์ค€.. 2023. 2. 3.
[๋ˆ„๊ตฌ๋‚˜ ์‰ฝ๊ฒŒ ์ฆ๊ธฐ๋Š” C ์–ธ์–ด ์ฝ˜์„œํŠธ - ๊ฐœ์ • 3ํŒ] 14์žฅ Mini Project ๋ฌธ์ œ ํ’€์ด # 14์žฅ Mini Project ๋ฌธ์ œ ํ’€์ด 544p_Mini Project) #include #define language 3 int main() { #if language == 1 //ํ•œ๊ตญ์–ด๋กœ ์ถœ๋ ฅ printf("=================== 2์›” ====================\n"); printf("์ผ ์›” ํ™” ์ˆ˜ ๋ชฉ ๊ธˆ ํ† \n"); for (int i = 1; i < 29; i++) { if (i % 7 == 4) { printf("%d ", i); printf("\n"); } else { if (i < 10) { if (i == 1) { printf(" %d ", i); } else { printf("%d ", i); } } else { printf("%d ", i); } } } #e.. 2023. 2. 3.