Ciao...prova a dare un'occhiata a questi 2 link:

http://www.cplusplus.com/reference/s...ing/c_str.html

http://www.cplusplus.com/reference/s...ring/copy.html