[전통]polish.h와 stack에 관한 소스
본 자료는 1페이지 의 미리보기를 제공합니다. 이미지를 클릭하여 주세요.
닫기
  • 1
  • 2
  • 3
  • 4
  • 5
해당 자료는 1페이지 까지만 미리보기를 제공합니다.
1페이지 이후부터 다운로드 후 확인할 수 있습니다.

소개글

[전통]polish.h와 stack에 관한 소스에 대한 보고서 자료입니다.

본문내용

str.*/
while (!emp(&tmp))
{
d= pop(&tmp); /* pop data from tmp */
if (!full(str))
push(d, str); /* push data on str */
} /* while(!emp(&tmp)) */
} /* FUCTION fill(stack *str, const char *str) */
/* print.c */
#include\"polish.h\"
void prn_data(data *dp)
{
switch (dp -> kind)
{
case operator: printf(\"%s%3c \\n\",
\"kind: operator op:\", dp -> u.op);
break;
case value: printf(\"%s%3d \\n\",
\"kind: value val:\", dp -> u.val);
break;
}/* switch (dp -> kind) */
}/* FUCTION prn_data(data *dp) */
void prn_stack(stack *str)
{
data d;
printf(\"stack count: %3d%s\", str -> cnt,
(str -> cny ==0 ) ? \"\\n\" : \" \");
if (!empty(str))
{
d = pop(str); /* pop the data */
prn_data(&d); /* print the data */
prn_stack(str); /* recursive call */
push(d,str); /* push the data */
}/* if */
}/* FUCTION prn_stack(stack *str) */

키워드

polish,   stack,   소스,   C언어,   C
  • 가격700
  • 페이지수5페이지
  • 등록일2002.09.22
  • 저작시기2002.09
  • 파일형식한글(hwp)
  • 자료번호#203779
본 자료는 최근 2주간 다운받은 회원이 없습니다.
다운로드 장바구니