I am wondering if there is some function in windows to convert a given char to its name.
cout << SomeFun(‘\t’);
cout << SomeFun(‘ ‘);
cout << SomeFun(‘,’);
Output is:
TAB
SPA
COMMA
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is no such function in either the Win32 API, the C++ standard library or the C standard library — but you could easily make one yourself that uses a lookup table to return the result.