
		tiagofga
		
		(usa Ubuntu)
		
		Enviado em 21/11/2008 - 20:06h 
		/* ConjInt.h */
#define NUL 0
typedef enum {false, true} Boolean;
typedef struct RegListaAux{
 int valor;
 struct RegListaAux *prox;
}RegLista, *Lista;
typedef Lista ConjInt;
typedef void Rotina(int);
ConjInt CriaConj();
void InsereConjInt(ConjInt *p, int x);
Boolean Pertence(ConjInt p, int x);
void ProcessaConj(ConjInt c, Rotina *p);
/* ConjInt.c */
#include stdio.h
#include "ConjIntf.h"
int main(){
 ConjInt conj CriaConj();
 int x;
 printf("Leitura\n");
 do{
  scanf("%d",&x);
  InsereConjInt(&conj,x);
   }while (x!= 0);
 printf("Consultas\n");
 do{
  scanf("%d",&x);
  if (Pertence(conj,x))
    printf("Pertence\n");
  else
    printf("Não Pertence\n");
  } while (x!= 0);
 return 0;
  /* main */