I know I already posted this but I guess I cant do it the way it was shown. I want a 2-dim array to print out on the same line as string word. I cant seem to figure out how to get a 2-dim array to do this, does anyone know how to do this?
void Sort(string word[],float grades[][8], int number)
{
int i,j=o, temp;
string aName;
float aName2[][];
for (i=0; i<(names - 1); i++)
{
temp = i;
aName = worde[i];
aName2=grades[i][j];
for(int k=i+1; k<names; k++)
{
if (word[k] < aName)
{
aName = word[k];
aName2[i][j]=grades[k][8];
temp = k;
}
}
word[temp] = word[i];
grades[temp][j]=grades[i][j];
word[i] = aName;
grades[i][j]=aName2[][];
}
}