I'm trying to compile my code, but the compilation returns the following error:
a function-definition is not allowed here before '{' token |
I am a beginner and have looked at the code several times to understand what may be happening, but I did not find the source of the error.
void menuAlunoCurso(){
opcao = 0;
system("cls");
printf("\t\t\tSisCA - Menu do Matriculado *****");
printf("\n\n\t\t\t *** Escolha uma opção ***");
printf("\n\t\t\t 1------Cadastrar");
printf("\n\t\t\t 2------Exibir");
printf("\n\t\t\t 3------Pesquisar");
printf("\n\t\t\t 4------Remover");
printf("\n\t\t\t 7------Voltar ao menu anterior");
printf("\n\n\t\t\tOpção: ");
scanf("%d",&opcao);
}
Could someone help me, please? Until yesterday the code was running perfectly.