Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I transform char symbol to ASCII?

Status
Not open for further replies.

Bratan

Technical User
Jul 13, 2008
3
AP
Help!
How can I transform a char symbol to its ASCII?
I did not find a function in c++.
 
If you mean its ascii value just cast it

char c = 'A';
int ascii = (int)c;

Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top