[code:1]
#include <stdio.h>
// 문자를 저장하는 스택과 함수 정의
#define MAX_EXPR_SIZE 100
#define CHAR_STACK_SIZE 100
#define INT_STACK_SIZE 100
char char_stack[CHAR_STACK_SIZE];
int char_top = -1;
int int_top = -1;
int char_Isfull()
{
if(char_top>=CHAR_STACK_SIZE-1)
return 1;
else
return 0;
}
int char_Isempty()
{
if(char_top<=-1)
return 1;
else
return 0;
}
void char_stack_full()
{
printf("Stack is Full! : \n");
}