64,649
社区成员
发帖
与我相关
我的任务
分享
#include <iostream>
using namespace std;
int main()
{
const char *pc="hell0";
pc="china";
*pc="ch"; //这个是说明*pc的内容部可变
cout<<pc<<endl;
char * const pd="hello";
pd="china"; //这个说明pd的内容是不可以变的
cout<<pd<<endl;
return 0;
}