converting char to ascii code - C++ Forum
1 2 3 4 5 6 // example: string foo = my_vector[ whatever_string_you_want ]; int c = (int)foo[ whatever_character_you_want ]; // or... without the temp var: int c = (int)my_vector[ whatever_string_you_want ][ whatever_character_you_want ];
www.cplusplus.com |