Allora:
codice:
void scambio(char citta[][15], int temp[][4]){
char string[20];
int temp[4];
int k=0;
strcpy(string,citta[i]);//copio il nome citta i
for(k=0;k<4;k++){ //copio le temperature i
temp[k]=temp[i+1][k];}
strcpy(citta[i],citta[j]);
for(k=0;k<4;k++){
temp[i+1][k]=temp[j+1][k];}
strcpy(citta[j], string);
for(k=0;k<4;k++){
temp[j+1][k]=temp[k];
}
return;
}
mi da alcuni errori come:
a function-definition is not allowed here before '{' token
expected `,' or `;' before '{' token
expected `}' at end of input
expected `}' at end of input