cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Help with converting from value to lette
Help with converting from value to letter
Nov 20, 2012 at 4:27am UTC
dkjdod
(8)
I need to be able to convert from int asci value to char letters. . I wrote this function, but it tells me it is an invalid conversion (even though I don't think I performed any type conversions).
Last edited on
Nov 20, 2012 at 5:32am UTC
Nov 20, 2012 at 4:36am UTC
Zhuge
(4664)
Use single quotes instead of double. Single quotes are for characters, double quotes are from C-strings.
Nov 20, 2012 at 4:37am UTC
Dissimulation
(43)
"A" is a const string. you are trying to return a char, use 'A'.
Nov 20, 2012 at 4:50am UTC
dkjdod
(8)
Got it working. Thanks!
Topic archived. No new replies allowed.