+ 1
How to get the ASCII value of functions key in c++
5 odpowiedzi
+ 1
Just cast it to char. For example:
int x = 42;
std::cout << static_cast<char>(x) << sts::endl;
+ 1
I am asking about F1, F2.....f12
+ 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.
+ 1
I know, they have a Unicode value
+ 1
how to check Unicode value of any key