(½Ç½À9) ´Ü¼ø¿¬°á ¸®½ºÆ®·Î ½ºÅà ±¸Çö
³»¿ë: ±³Àç¿¡ ÀÖ´Â ´Ü¼ø¿¬°á ¸®½ºÆ®·Î ½ºÅÃÀ» ±¸ÇöÇÑ ÇÁ·Î±×·¥À» ÀÛ¼ºÇÏ°í µ¿ÀÛÀ» È®ÀÎÇϽÿÀ.
1) ±³Àç¿¡ ÀÖ´Â ´Ü¼ø¿¬°á ¸®½ºÆ®·Î ½ºÅÃÀ» ±¸ÇöÇÑ ÇÁ·Î±×·¥À» ÀÛ¼ºÇϽÿÀ.
(¾Æ·¡ ±³ÀçÇÁ·Î±×·¥ Âü°íÀÇ prog5-4.c)
(prog5-4.c Ŭ¸¯Çϸé Á¢¼ÓÀÌ ¾ÈµÉ ¶§ ÇØ°á ¹æ¹ý: ¿©±â Ŭ¸¯)
2) element¸¦ ½Ç½À4¿¡¼ »ç¿ëÇÑ student_info ±¸Á¶Ã¼·Î ¼±¾ðÇϽÿÀ.
3) "È«±æµ¿", 20110021, "¼¿ï½Ã ¼ººÏ±¸ »ï¼±µ¿" ÀÇ element¸¦ ¸¸µé°í push ÇϽÿÀ.
"±èö¼ö", 20110011, "¼¿ï½Ã °³²±¸ ½Å»çµ¿" ÀÇ element¸¦ ¸¸µé°í push ÇϽÿÀ.
"¾ç±Íºñ", 20110201, "°æ±âµµ °í¾ç½Ã Àϻ굿" ÀÇ element¸¦ ¸¸µé°í push ÇϽÿÀ.
4) pop ÇÏ¿© element ¸¦ ȸ鿡 Ãâ·ÂÇϽÿÀ.
pop ÇÏ¿© element ¸¦ ȸ鿡 Ãâ·ÂÇϽÿÀ.
pop ÇÏ¿© element ¸¦ ȸ鿡 Ãâ·ÂÇϽÿÀ.
*) ½ºÅÃÀÇ LIFO Ư¼º´ë·Î ÀÔ·Â ¼ø¼¿Í ¹Ý´ë·Î Ãâ·ÂµÇ´ÂÁö È®ÀÎÇϽÿÀ.
Ãß°¡: ½ºÅÃÀ» ÀÌ¿ëÇÏ¿© ÀÔ·ÂÇÑ ¹®ÀåÀÇ ¹®ÀÚ¸¦ ¿ª¼øÀ¸·Î Ãâ·ÂÇÏ´Â ÇÁ·Î±×·¥À» ÀÛ¼ºÇϽÿÀ.
- µ¿ÀÛ ¿¹) hello ---> olleh
Good morning !!! ---> !!! gninrom dooG
- Çѱ۵µ ¿ª¼øÀÌ µÇ°Ô ¼öÁ¤ÇϽÿÀ.
¿¹) ¾È³çÇϼ¼¿ä ---> ¿ä¼¼Çϳç¾È
¿¹) Hansung ´ëÇб³¿¡ ´Ù´Õ´Ï´Ù. ---> .´Ù´Ï´Õ´Ù ¿¡±³Çдë gnusnaH
ÈùÆ®
- typedef unsigned char element;
- for(i=0; i < LEN; i++){
output[i]=pop(&s);
}- if(c1 >= ' ' && c1 <= 126) // ¿µ¹®¹üÀ§
- hangul = c2 << 8 | c1; // ÇÑ±Û ¸¸µé±â (ÇѱÛÀº 2 bytes unicode, ¿µ¹®Àº 1 byte ASCII)
- if(hangul >= 0xAC00 && hangul <= 0xD7AB) // ÇÑ±Û unicode ¹üÀ§ (AC00 ~ D7AB)
- ÇÑ±Û Ãâ·ÂÀº puchar(c2); putchar(c1);
[±³Àç ÇÁ·Î±×·¥ Âü°í]
- http://itsys.hansung.ac.kr/lec/dstruct/htmls/source/chap5/prog5-1.c
- http://itsys.hansung.ac.kr/lec/dstruct/htmls/source/chap5/prog5-2.c
- http://itsys.hansung.ac.kr/lec/dstruct/htmls/source/chap5/prog5-3.c
- http://itsys.hansung.ac.kr/lec/dstruct/htmls/source/chap5/prog5-4.c
- http://itsys.hansung.ac.kr/lec/dstruct/htmls/source/chap5/prog5-5.c
- http://itsys.hansung.ac.kr/lec/dstruct/htmls/source/chap5/prog5-6.c
- http://itsys.hansung.ac.kr/lec/dstruct/htmls/source/chap5/prog5-7.c
- http://itsys.hansung.ac.kr/lec/dstruct/htmls/source/chap5/prog5-8.c