Non-lvalue in assigmnet Error?
I have an object that creates a multi dimensional array.
Object a(10) // this creates an array: temp [10][2]
In the main function I need to access the object this way:
a[6] = 6 * 10 // I want it to set temp[6][2] to 60
I keep getting a "non-lvalue in assignment" error. I had to overload the [] operator and I'm returning a pointer to that position in the array.
I've searched google for "non-lvalue in assignment" but I wasn't able to work out my problem from that. If you can help that would be great.