APL/APL1.2/TP10/test_parentheses.c

15 lines
277 B
C
Raw Normal View History

2022-01-18 12:52:55 +01:00
#include <stdio.h>
#include <stdlib.h>
#include "chainee.h"
int main(int argc, char* argv[]) {
pile p;
push(&p, 'O');
push(&p, 'N');
push(&p, 'C');
push(&p, 'R');
push(&p, 'S');
printf("%c\n", top(p));
clear(&p);
printf("%d\n", empty(p));
}