parenteses.c 249 Bytes
Newer Older
vgsb18's avatar
vgsb18 committed
1
#include <stdio.h>
2
#include <stdlib.h>
3
#include "tad_pilha.h"
vgsb18's avatar
vgsb18 committed
4 5 6

int main()
{
7 8 9 10 11
	tad_pilha *p;
	p = malloc(sizeof(tad_pilha));
	inicializa_pilha(p);
	p = empilhadeira(p);
	if (avalia_sequencia(p))
vgsb18's avatar
vgsb18 committed
12 13 14 15 16
		printf("SIM\n");
	else
		printf("NAO\n");
	return 0;
}