In delphi exist a function called Ord
which Returns the ordinal value of an ordinal-type expression.
for example you can retrieve the Ascii value for a char in this way
Ord('A') return 65
Ord('a') return 97
in C++ which function i must use to get the ascii value for a Char.?
A simple int a = c;
where c
is a char
should work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With