[ad_1]
Retrieve characters from string by index
std::string s = "B"; // It has at least one character
char cs = s[0];
[ad_2]
solved Type Cast a string to char in c++ [closed]
[ad_1]
Retrieve characters from string by index
std::string s = "B"; // It has at least one character
char cs = s[0];
[ad_2]
solved Type Cast a string to char in c++ [closed]