delphi - Get the ascii value for a char, Ord equivalent in C++ -


in delphi exist function called ord returns ordinal value of ordinal-type expression.

for example can retrieve ascii value char in way

ord('a') return 65

ord('a') return 97

in c++ function must use ascii value char.?

a simple int = c; c char should work.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -