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

~240502 ๋ฐฑ์ค€ review - [์ž…์ถœ๋ ฅ๊ณผ ์‚ฌ์น™์—ฐ์‚ฐ]

by Nam Kyeongmin 2024. 5. 2.

๐Ÿ‘ฉ‍๐Ÿ’ป๐Ÿ’ญ ์•ˆ๋…•! ์˜ค๋žœ๋งŒ์— ํฌ์ŠคํŒ…์ž…๋‹ˆ๋‹ค

๊ทธ๊ฐ„ ๋ฐฑ์ค€ ๋ฌธ์ œ๋ฅผ ์•ˆํ‘ผ ๊ฒƒ์€ ์•„๋‹ˆ์ง€๋งŒ ๋น ๋ฅด๊ฒŒ ํ’€๊ณ  ์žˆ๋‹ค๋ณด๋‹ˆ ํฌ์ŠคํŒ…์„ ์ž‘์„ฑํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค(๐Ÿฅฒ)

๊ทผ๋ฐ ์ด๋Ÿฐ ๋ฆฌ๋ทฐ์‹œ๊ฐ„์„ ๊ฐ€์ง€์ง€ ์•Š์œผ๋ฉด ์Šค์Šค๋กœ์˜ ๊ฒƒ์œผ๋กœ ๋‚จ๊ธฐ๊ธฐ ์–ด๋ ต๋‹ค๋Š” ์ƒ๊ฐ์ด ๋“ค์–ด ์ด๋•Œ๊นŒ์ง€ ํ’€์–ด์˜จ ๋ฌธ์ œ๋“ค์ค‘ ์ƒˆ๋กญ๊ฒŒ ์•Œ๊ฒŒ ๋œ ๊ฒƒ+ํ—ท๊ฐˆ๋ฆฌ๋Š” ๊ฒƒ๋“ค์„ ์ „์ฒด์ ์œผ๋กœ ๋ฆฌ๋ทฐํ•ด๋ณผ๊นŒ ํ•ฉ๋‹ˆ๋‹ค!

๊ทธ๋Ÿผ ์ง€๊ธˆ๋ถ€ํ„ฐ ๋ ˆ๊ณ ~

 

10171 ๊ณ ์–‘์ด

 

๋ฌธ์ œ๋Š” ์ด๋Ÿฌํ•˜๊ณ ์š”, ์—ฌ๊ธฐ์„œ ํฌ์ธํŠธ๋Š” "\"๋ฅผ ์–ด๋–ป๊ฒŒ ์ถœ๋ ฅํ•  ๊ฒƒ์ธ๊ฐ€! ์ž…๋‹ˆ๋‹ค.

(๊ฝ๊ฝ ์–ผ์–ด๋ถ™์€ ํ„ฐ๋ฏธ๋„ ์œ„๋กœ ๊ณ ์–‘์ด ๊ฑธ์–ด๋‹ค๋‹™๋‹ˆ๋‹ค~.~)

#include <stdio.h>

int main() {
	printf("\\    /\\\n");
	printf(" )  ( ')\n");
	printf("(  /  )\n");
	printf(" \\(__)|");

	return 0;
}

 

์ถœ๋ ฅ๋ฐฉ๋ฒ•์€ \๋ฅผ ๋‘๋ฒˆ ์—ฐ์†์ž‘์„ฑํ•˜๊ธฐ! ์ž…๋‹ˆ๋‹ค.

์ด ์ฝ”๋“œ๋ฅผ ์ด์šฉํ•˜๋ฉด ์˜ˆ์ œ ์ถœ๋ ฅ๊ณผ ๊ฐ™์€ ์ฝ”๋“œ๋ฅผ ๊ตฌํ˜„ํ•  ์ˆ˜ ์žˆ์–ด์š”!

 

10171 ๊ฐœ

 

๋น„์Šทํ•œ ์„ฑ์งˆ์„ ์ด์šฉํ•˜์—ฌ ๋‹ค์Œ ๋ฌธ์ œ์ธ ๊ฐœ๋„ ์ถœ๋ ฅํ•ด๋ณผ ์ˆ˜ ์žˆ๋Š”๋ฐ์š”,

์—ฌ๊ธฐ์„œ ์ถ”๊ฐ€๋œ ๊ฒƒ์€ "\"์˜ ์ถœ๋ ฅ ๋ฟ๋งŒ์•„๋‹ˆ๋ผ " ์ด ๋”ฐ์˜ดํ‘œ ์ž์ฒด ์ถœ๋ ฅ๊นŒ์ง€ ๊ตฌํ˜„ํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค!

 

#include <stdio.h>

int main() {
	printf("|\\_/|\n");
	printf("|q p|   /}\n");
	printf("( 0 )\"\"\"\\ \n");
	printf("|\"^\"`    |\n");
	printf("||_/=\\\\__|");
	// "์„ ์ถœ๋ ฅํ•˜๋ ค๋ฉด ๊ทธ ์•ž์— \๋ฅผ ๋ถ™์—ฌ์„œ ์ถœ๋ ฅํ•˜๊ธฐ

	return 0;
}

 

๊ทธ๋ฆฌ๊ณ  ๊ทธ์— ๋Œ€ํ•œ ํ•ด๋‹ต์€, ์—ฌ๊ธฐ ์ฃผ์„์—๋„ ์ž‘์„ฑํ–ˆ๋“ฏ์ด,

์ถœ๋ ฅํ•˜๋ ค๋Š” " ์•ž์— \๋ฅผ ์—ฐ์†ํ•ด์„œ ์ž‘์„ฑํ•˜๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค.

์ด๋Ÿฐ ํŠน์ง•๋“ค์€ ์ž์ž˜์ž์ž˜ํ•˜๋‹ˆ ํ•œ๋ฒˆ ์ œ๋Œ€๋กœ ์งš๊ณ  ๋„˜์–ด๊ฐ€๋Š” ๊ฒƒ์ด ์ข‹๊ฒ ๋„ค์š”~!

 

 

์šฐ์„  ๋ฐฑ์ค€ ๋‹จ๊ณ„๋ณ„ ๋ฌธ์ œํ’€๊ธฐ - [์ž…์ถœ๋ ฅ๊ณผ ์‚ฌ์น™์—ฐ์‚ฐ] ๋‹จ๊ณ„๋Š” ์ด๊ฒƒ์„ ๋์œผ๋กœ ๋งˆ๋ฌด๋ฆฌ ์ง€์„ ์ˆ˜ ์žˆ๊ฒ ์Šต๋‹ˆ๋‹ค!

๋‹ค์Œ ๋‹จ๊ณ„์ธ [์กฐ๊ฑด๋ฌธ] ๋‹จ๊ณ„ review๋กœ ๊ณง๋ฐ”๋กœ! ๋Œ์•„์˜ค๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค~:)