Hello anybody out there. I have a problem understanding the function to convert string object to null-terminated string.

The function looks something like:

const char *c_str()const;

my program looks something like this:

char word[10]; // null-terminated string (array of char)
string word2; // string object

cin >> word2;

word = word2; // conversion done here; error!!

cout << word;

How do I apply the conversion function here?