有魅力电灯胆

文章
4
资源
0
加入时间
4年2月14天

C风格字符串和C++风格字符串转换

一、C风格—>C++风格 char c[] = "hello world"; string s(c); cout << s << endl; //hello world二、C++风格—>C风格 int i; string s = &am