15 lines
277 B
C
15 lines
277 B
C
#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));
|
|
} |