To get the char code in C++ you can use the following snippet.
Simply cast the Char to int.
Sample C++
cout << (int)'A' << endl;
All the Code Snippets and Samples you need
To get the char code in C++ you can use the following snippet.
Simply cast the Char to int.
cout << (int)'A' << endl;
You must be logged in to post a comment.
RT @CodeSnippetsNET: Get the char code in #C++ http://t.co/4lhBjC5cqS #programming #coding #code #cplusplus #dev