string s = "hello";
const char *cp = s.c_str();
const char *p = "hello";
cout << cp << endl; //hello
cout << p << endl; //hello
博客围绕string与const char *展开,虽未给出具体内容,但可知核心聚焦于这两者,它们在信息技术领域的编程等方面有重要应用。
string s = "hello";
const char *cp = s.c_str();
const char *p = "hello";
cout << cp << endl; //hello
cout << p << endl; //hello
4234
1万+

被折叠的 条评论
为什么被折叠?