I have an error in my program: "could not convert from string to char*". How do I perform this conversion?
Use the c_str() method on a string object to get a const char* pointer. Warning: The returned pointer is no longer valid if the string object is modified or destroyed.
c_str()
string
const char*