for (row = 0;row0){ strcpy(tempID[0],line[row]); strcpy(line[row],line[row+1]); strcpy(line[row+1],tempID[0]); strcpy(tempgra[0],gra[row]); strcpy(gra[row],gra[row+1]); strcpy(gra[row+1],tempgra[0]); } } }