Lvalue and Rvalues

can anyone halp me with this


id2=toupper(getche());

//id2 is a char
//it has an error that says lvalue required
//can anyone help me ?
Last edited on
Hiya,

http://www.cplusplus.com/reference/cctype/toupper/

toupper returns an int, not a char. also getche... do you mean the getche() function? it's an old c method that should not really be used in c++
what are you trying to achieve?

regarding l and r values, have a read of this:
http://msdn.microsoft.com/en-gb/library/f90831hc.aspx
Last edited on
Please, show some context. int should be perfectly convertable into char save for specific situations. A minimal example would be neat.
Topic archived. No new replies allowed.