+ 1

How to get the ASCII​ value of functions key in c++

15th Apr 2017, 7:50 AM
Pawan Kumar
Pawan Kumar - avatar
5 Answers
+ 1
Just cast it to char. For example: int x = 42; std::cout << static_cast<char>(x) << sts::endl;
15th Apr 2017, 11:43 AM
Denis Felipe
Denis Felipe - avatar
+ 1
I am asking about F1, F2.....f12
15th Apr 2017, 11:44 AM
Pawan Kumar
Pawan Kumar - avatar
+ 1
They do not have an ASCII value. ASCII code is used to represent characters as we know. Function keys don't output a character, they just send a signal to the OS.
15th Apr 2017, 11:56 AM
Denis Felipe
Denis Felipe - avatar
+ 1
I know, they have a Unicode value
2nd May 2017, 8:57 AM
Pawan Kumar
Pawan Kumar - avatar
+ 1
how to check Unicode value of any key
2nd May 2017, 8:58 AM
Pawan Kumar
Pawan Kumar - avatar