/* LINGUAGGI DI PROGRAMMAZIONE - PRIMA PROVA DI ESONERO */ /* IMPLEMENTAZIONE DELL'ESERCIZIO N. 5 */ #include #include const int MAXVETTORE=100; const int MAXSTRINGA=50; void insertion_sort(char *a[100], int n); main () { char NomeFile[20], scelta=' '; FILE *FileAperto; char *stringhe[MAXVETTORE]; /*[MAXSTRINGA];*/ int i,N=0; /* Apertura del file di input */ printf("Inserisci il nome del file da ordinare: "); gets(NomeFile); if ((FileAperto=fopen(NomeFile,"r"))==NULL) { printf("\n\nImpossibile aprire il file ''%s'' in lettura.\n",NomeFile); return 1; }; /* Lettura delle stringhe da file e caricamento nel vettore */ while (!feof(FileAperto)&&(N