hello how can i get the ascii value from a char

i mean i need to enter a single char and to print his ascii value
and i have no idea of how doing so in C++.

its a problem that i got from a pascal book,
and i just use function "ord" but in c++ i cant find
such function or a way to do so.
Characters are stored as ascii values, to display it you need to cast the char to some other integer type
Topic archived. No new replies allowed.