Quantcast
Channel: ...Int to Char
Viewing all articles
Browse latest Browse all 8

...Int to Char

$
0
0
Hello everyone, tried searching, but couldn't find anything working.
I need to convert a regular int (let's say, 65) to its char representation.
Problem is, i already tried some solutions, but none worked.
Here's what i tried:

int nr=65;

char c=(char)nr;
//Doesn't work;
char c=static_cast<char>(nr);
//Nay, doesn't work either
What do i do? Please help !
Thanks.

Viewing all articles
Browse latest Browse all 8

Latest Images

Trending Articles





Latest Images