compiler error
What does the error "Lvalue required in function Player::Fight"? I''m using a Borland C++ 5.5 compiler I downloaded off the internet.
HibikiWheres the any key?www.geocities.com/dragongames123/home.html
find your elementat mutedfaith.com.<º>
find your elementat mutedfaith.com.<º>
Did you forget to grab the docs for it?
"I thought what I'd do was, I'd pretend I was one of those deaf-mutes." - the Laughing Man
Lvalue means left value. You most likely have a variable name spelled wrong somewhere. Look for a place where you called a class function or used an array; those will usual give Lvalue errors rather than "unknown identifier"
March 08, 2002 12:11 AM
What happens if you call a function that returns something without an lvalue?
An lvalue is a variable which can be the receptor of an assignment. In the statement a = 10;, a is an lvalue. 10 is not, so you can''t do 10 = a; or 10 = 5;
[ GDNet Start Here | GDNet Search Tool | GDNet FAQ | MS RTFM [MSDN] | SGI STL Docs | Google! ]
Thanks to Kylotan for the idea!
[ GDNet Start Here | GDNet Search Tool | GDNet FAQ | MS RTFM [MSDN] | SGI STL Docs | Google! ]
Thanks to Kylotan for the idea!
Maybe you did something like this:
If you did the above, in MSVC++, you would get:
Hope that helps
EDIT: Same thing Oluseyi is talking about, except with the nice source thingy.
Edited by - Programmer One on March 8, 2002 1:48:49 AM
3 = MyVar;// or4 = 4;
If you did the above, in MSVC++, you would get:
error C2106: '=' : left operand must be l-value
Hope that helps
EDIT: Same thing Oluseyi is talking about, except with the nice source thingy.
Edited by - Programmer One on March 8, 2002 1:48:49 AM
Ok, I looked over the code and there was nothing like that in the code. There is alot of variables being changed, but nothing backwards..
HibikiWheres the any key?www.geocities.com/dragongames123/home.html
find your elementat mutedfaith.com.<º>
find your elementat mutedfaith.com.<º>
March 08, 2002 06:12 PM
does the debug tell you which line your having a problem with? maybe you can check that line or the line before it. or post that line for us to see
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement