
Originariamente inviata da
LeleFT
Manca il punto e virgola alla fine della dichiarazione di ciascun prototipo di funzione.
Non ho guardato il resto del codice.
PS: il codice va postato all'interno degli appositi tag CODE per mantenerne indentazione e formattazione.
PPS: ri-posta il codice perchè al momento della modifica è sparito tutto. Era una specie di testo incluso dentro ad una casella...
Ciao.

codice:
#include<iostream.h>#include<string.h>
typedef char stringa60[61];
typedef char stringa80[81];
typedef char stringa_citta[101];
struct str_scheda
{
int gg,mm,aa;
stringa60 nome;
stringa80 cognome;
stringa_citta citta;
int codice;
int cap;
int classe;
char sezione;
};
//PROTOTIPI--------------------------
void ALUNNI(char[]);
void STAMPA(char[],int);
//INIZIO MAIN -------------------------------
int main()
{
int I,DIM;
str_scheda scheda;
cout<<"quanti alunni vuoi inserire?";
cin>>(DIM);
I=0;
while(I<DIM)
{
ALUNNI(scheda[1000]);
I=I+1;
}
STAMPA(scheda[1000],DIM);
system("pause");
return 0;
}
//INIZIO SOTTOPROGRAMMA ALUNNI------------------
void ALUNNI(char scheda[1000])
{
cout<<"inserisci data iscrizione alunno";
cout<<"GG: ";
cin>>(scheda[I].gg);
cout<<"MM: ";
cin>>(scheda[I].mm);
cout<<"AA: ";
cin>>(scheda[I].aa);
cout<<"NOME: ";
cin>>(scheda[I].nome);
cout<<"COGNOME: ";
cin>>(scheda[I].cognome);
cout<<"CITTA: ";
cin>>(scheda[I].citta);
cout<<"COD-ALUNNO: ";
cin>>(scheda[I].codice);
cout<<"CAP: ";
cin>>(scheda[I].cap);
cout<<"CLASSE: ";
cin>>(scheda[I].classe);
cout<<"SEZIONE: ";
cin>>(scheda[I].sezione);
}
//INIZIO SOTTOPROGRAMMA STAMPA
void STAMPA(char scheda[1000],DIM);
{
int I,SCELTA;
cout<<"quale classe vuoi stampare?";
cin>>(SCELTA);
I=0;
while(I<DIM)
{
if (SCELTA==scheda[I].classe)
{
cout<<"ecco le schede degli alunni richiesti"<<scheda[I];
}
I=I+1;
}
}
ok grazie per i suggerimenti riecco il codice, purtroppo la situazione e peggiorata xD
Cattura.jpg gli errori sono in questa immagine