cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Lvalue and Rvalues
Lvalue and Rvalues
Oct 15, 2014 at 10:21am UTC
bookwormjadi1
(6)
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
Nov 20, 2014 at 11:36am UTC
Oct 15, 2014 at 10:34am UTC
mutexe
(2372)
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
Oct 15, 2014 at 10:35am UTC
Oct 15, 2014 at 10:57am UTC
MiiNiPaa
(8886)
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.