Obrigado pela grande ajuda Marcelo, muito obrigado mesmo, porém, acho que algumas coisas que tem aí são diferente do que uso, vou passar um código de exemplo: #include <conio2.h>
#include <ctype.h>
#include <string.h>
#include <stdio.h>
#define TF 20
struct TpPessoa
{
char Nome[40], Fone[15];
int d, m, a;
};
void Cadastra(TpPessoa Tab[TF], int &TL)
{
char AuxFone[15];
clrscr();
printf ("** Cadastro de Pessoas **\n");
printf ("Digite o telefone (xx)xxxx-xxxx: ");
fflush(stdin);
gets(AuxFone);
while (TL<TF && strcmp(AuxFone, "")!=0)
{
strcpy(Tab[TL].Fone, AuxFone);
printf ("Nome: ");
gets(Tab[TL].Nome);
printf ("Ano Nasc.: xx xx xxxx: ");
scanf ("%d %d %d", &Tab[TL].d, &Tab[TL].m, &Tab[TL].a);
TL++;
printf ("\nTelefone: (xx)xxxx-xxxx: ");
fflush(stdin);
gets(AuxFone);
}
}
int BuscaSentinela (int Vetor[TF], int TL, int Elemento)
{
int i=0;
Vetor[TL] = Elemento;
while (Elemento!=Vetor[i])
i++;
if(i<TL)
return i;
else
return -1;
}
int main (void)
{
TpPessoa Pessoas[TF];
int TL=0;
Cadastra(Pessoas, TL);
//InsercaoDireta(Pessoas, TL);
ExibePessoas(Pessoas, TL);
Ordem(Pessoas, TL);
ExibePessoas(Pessoas, TL);
Consulta(Pessoas, TL);
Exclusao(Pessoas, TL);
Alterar(Pessoas, TL);
return 1;
} Apenas um exemplo das bibliotecas que eu dos comandos como printf, scanf, nunca usei ifndef, typedef, e outras coisas, ontem tem -> seria o =? Obrigado!