Vejam este fragmento de código. Quando eu usava Dev-C v4, não acontecia os erros de compilação abaixo. Quando mudei para uma versão superior( Dev-C++ v.4.9.9.2) eles apareceram, erros que nunca vi antes.
O que está faltando ?
/*==============================MACROS==================*/
#define TAMANHO 3 /* Define uma macro a ser subistituida ao longo do prog*/
#define INI_REG 0
#define BUFFER 1024
/*========================CABECALHOS================*/
#include <stdio.h> /* Utilizada para chamar a funcoes de arquivo*/
#include <ctype.h> /* Utilizada para chamar a funcoes toupper,isdigit e
isalpha*/
#include <string.h> /* Utilizada para chamar a funcao strlen*/
#include <conio2.h>
/*==================ESTRUTURA GLOBAL================*/
struct cadastro
{
char nome[30];
int idade;
char idade2[4];
char sexo;
char sexo2;
};
struct cadastro dados[TAMANHO]; /* Atribui a variavel dados a estrutura*/
/*=======================PROTOTIPOS====================*/
int Entradados (struct cadastro *p);
void Menu(void);
int getnum(void);
int Criarq (struct cadastro *p);
int Atualarq (struct cadastro *p);
int Learq(void);
void Apagarq (void);
void Limpalinha(void);
/*============PROGRAMA PRINCIPAL=========================*/
int Entradados (struct cadastro *p)
{
int register k,i,num,caracter; /* var num e caracter ‚ usada para
provocar nova entrada de idade caso nao seja digitado um algarismo de 0 a 9 funciona como
controle de flag que dispara a mensagem de erro*/
system("CLS"
..................
..................
Erros de compilação
D:\fontec\CADASTRO.C In function `int Entradados(cadastro*)':
64 D:\fontec\CADASTRO.C `system' undeclared (first use this function)
(Each undeclared identifier is reported only once for each function it appears in.)
128 D:\fontec\CADASTRO.C `atoi' undeclared (first use this function)
168 D:\fontec\CADASTRO.C return-statement with no value, in function returning 'int'
D:\fontec\CADASTRO.C In function `void Menu()':
175 D:\fontec\CADASTRO.C `system' undeclared (first use this function)
216 D:\fontec\CADASTRO.C `exit' undeclared (first use this function)
D:\fontec\CADASTRO.C In function `int getnum()':
235 D:\fontec\CADASTRO.C `atoi' undeclared (first use this function)
D:\fontec\CADASTRO.C In function `int Criarq(cadastro*)':
250 D:\fontec\CADASTRO.C `system' undeclared (first use this function)
251 D:\fontec\CADASTRO.C return-statement with no value, in function returning 'int'
317 D:\fontec\CADASTRO.C return-statement with no value, in function returning 'int'
D:\fontec\CADASTRO.C In function `int Atualarq(cadastro*)':
331 D:\fontec\CADASTRO.C `system' undeclared (first use this function)
332 D:\fontec\CADASTRO.C return-statement with no value, in function returning 'int'
354 D:\fontec\CADASTRO.C return-statement with no value, in function returning 'int'
D:\fontec\CADASTRO.C In function `int Learq()':
367 D:\fontec\CADASTRO.C `system' undeclared (first use this function)
387 D:\fontec\CADASTRO.C return-statement with no value, in function returning 'int'
D:\fontec\CADASTRO.C In function `void Apagarq()':
D:\fontec\CADASTRO.C In function `void Apagarq()':
Obrigado