+ 2
[SOLVED] How to print ascii value of charecter in c++? Using cout
With printf, we write printf("%d", c); where c is character ... but cout << c prints character's original value
4 odpowiedzi
+ 3
Just cast char to int:
std::cout << int(ch);
+ 2
think u
+ 2
sorry thank u
0
No thanks :) That was simple answer to simple question.