I am a rookie with C++
. I have a string "tỏa"
but I can't get the character 'ỏ'
and why the length of that string is 5? How can I get that character as a variable?
void test() {
std::string str ("tỏa");
for(int i=0; i<str.length(); ++i){
std::cout << str[i] << std::endl;
}
}
And the output of that code is:
t
�
�
�
a
Anyone can help me? Thank in advance.