자료구조시간에, 피곤해서 잠깐 자고있어났더니..
postfix 라는걸 했더군요...
책에도 없는 소스를 주석 달아오라네요..^^
뒤적이다보니 외국사이트에도 올라가있고,.. 꽤 알려진 책에서 나온 소스같던데, 어떤 책인지 좀 알려주시면 감사~ ^^;
[code:1]
#include <stdio.h>
#include <stdlib.h>
#define MAXCOLS 60
#define TRUE 1
#define FALSE 0
#define PLUS 1
#define MINUS 1
#define MUL 2
#define DIV 2
struct stack
{
int top;
char items[MAXCOLS];
};
int empty(struct stack *ps)