How copy one char from a string

hi, Im trying to copy one char from a string

for example
1
2
3
std:string abet;
std::string message = "Hello worlds, of niceness";
abet = ?


using <string> how do I copy char 5? which would be "o"
and store a copy of it in abet

std::string abet = message[4];

Try it out; I did not.
thank, you worked wonderfully
string class is a STL container just like STL vector.
Topic archived. No new replies allowed.