#include <iostream> #include <string> using namespace std; int main() { string str1="Hello"; char *str2=const_cast<char*>(str1.c_str()); cout<<str2; return 0; }
69,373
社区成员
243,080
社区内容
加载中
试试用AI创作助手写篇文章吧