第十八章 14 将string型字符串转为char字符串 简单

// 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;
}*/

  

原文地址:https://www.cnblogs.com/xiangxiaodong/p/2700712.html