Pointer Question

I am creating a program that reads in from a file using a pointer. However I get this error when I compile.
C:\Documents and Settings\Me\Desktop\WITCC\3rd Quarter Classes\C++\MvsM2.cpp In function `void sortArray1(int*, int)':

99 C:\Documents and Settings\Me\Desktop\WITCC\3rd Quarter Classes\C++\MvsM2.cpp non-lvalue in assignment

100 C:\Documents and Settings\Me\Desktop\WITCC\3rd Quarter Classes\C++\MvsM2.cpp non-lvalue in assignment

I googled my little heart out and found no answer. Is there anyone could explain this to me?
You have to post your code, otherwise we can only guess.

If I were to guess, might you be using a single equals in an if statement rather than a double equals ( = is the assignment operator; == is the comparison operator).
Topic archived. No new replies allowed.