// 14 将string型字符串转为char字符串 /*#include <iostream> #include <string> using namespace std; int main() { string str="hello word"; const char *ch; ch = str.c_str(); cout<<ch<<endl; return 0; }*/