Follow us on Twitter!
I'd prefer to die standing, than to live on my knees - Che Guevara
Wednesday, August 24, 2016
Navigation
Home
 Find:
 Information:
Learn
Communicate
Submit
Shop
Challenges
 Exploit:
 Programming:
 Think:
 Track:
 Patch:
 Other:
 Need Help?
Other
Members Online
Total Online: 29
Guests Online: 26
Members Online: 3

Registered Members: 95191
Newest Member: dogcat250
Latest Articles
View Thread

HellBound Hackers | Computer General | Programming

Author

c++ char to ascii


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 04-11-06 01:31
i need to change a char to a ascii value dec i am writing an encryption program is there ne way to do this ...


Author

RE: c++ char to ascii


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 04-11-06 01:43
Code

#include <iostream>

int main(int argc, char **argv)
{
char myChar = 'A';
std::cout << static_cast<int>(myChar) << std::endl;
return 0;
}





<3 ~T

Edited by on 04-11-06 01:48