第十八章 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;
}*/

  

posted @ 2012-09-24 22:07  简单--生活  阅读(211)  评论(0编辑  收藏  举报
简单--生活(CSDN)