Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void memorizza(FILE*out,persona voc[],persona cons[],int*m1,int*m2)
- {
- if(out==NULL)
- {
- printf("errore nell'apertura dei file in lettura\n");
- }
- else
- {
- printf("\nMEMORIZZAZIONE NEI VETTORI IN CORSO....\n\n");
- int i,j;
- i=0;
- j=0;
- persona temp;
- while(!feof(out))
- {
- fscanf(out,"%s%d",&temp.nome,&temp.anni);
- if(temp.nome[0]=='a'||temp.nome[0]=='e'||temp.nome[0]=='i'||temp.nome[0]=='o'||temp.nome[0]=='u')
- {
- voc[i]=temp;
- i++;
- }
- else
- {
- cons[j]=temp;
- j++;
- }
- }
- *m1=i;
- *m2=j;
- }
- }
Add Comment
Please, Sign In to add comment