Jump to content

funcoes.c:491: error: incompatible type for argument 1


Juin
 Share

Recommended Posts

Tenho esta função....

int AdicionarProposta(Livro dados[], int indx){ //Função para adicionar noas propostas
    system("cls");
    if(indx<DIM){
        dados[indx]=LerProposta(indx); //Chama a Função para a leitura das propostas
        ++indx;
        EscreverFicheiro(dados[indx], indx, "basededados.txt", "w"); //Chama o procedimento para escrever no Ficheiro os dados.
        printf("Proposta inserida com sucesso!\n");
    }
    else
        printf("Espaço insuficiente para novas Propostas!\n");

   return indx;
}
[\code]


depois a chamo desta maneira noutra função....

[code]
posicao = AdicionarProposta(f[posicao],indice);
[\code]


e tou a ter este tipo de erro...

funcoes.c:491: error: incompatible type for argument 1 of `AdicionarProposta'

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.