i am seeing this error:
error C2106: '=' : left operand must be l-value
here is the code
bool swap;
int numTemp;
char charTemp[30];
int count;
do
{
swap = false;
for (count = 0; count < (size -1); count++)
{
if (array[count] > array[count + 1])
{
numTemp = array[count];
charTemp = stud[count];
array[count] = array[count +1];
stud[count] = stud[count + 1];
array[count + 1] = numTemp;
stud[count +1] = charTemp;
swap = true;
}
}
} while (swap);
what im trying to do is when the value gets swapped i want the character array to be swapped with it.