0

Hi
I got this code:
(hours_worked-35)=overtime_hours;
(overtime_hours)-(hours_worked)=normal_hours;

I get this error:
error C2106: '=' : left operand must be l-value

What does this mean?

4
Contributors
5
Replies
6
Views
8 Years
Discussion Span
Last Post by Salem
0

> (hours_worked-35)=overtime_hours;
result = value;
copies value INTO result, not the other way round.

0

this error is still buggin me, i am doing a-levels and its due tomorrow. i tried the above and it doesnt work???

0

What they are trying to tell you is that you should always start these kinds of statements with the destination of outcome: outcome = 3-4; will result in 'outcome' being -1 3-4 = outcome; will result in your error

0

> this error is still buggin me, i am doing a-levels and its due tomorrow. i tried the above and it doesnt work???
And you couldn't have said this at any time in the 14 days between now and your previous post?

Like a week ago, where we would have had plenty of time to walk you through it.

Now why is that (not that I really care about your answer)

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.