經安全檢測,此網站為安全網站,請放心前往原始網址!

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

網址安全性掃描由 google 提供