求解:常指针。。。
#include <iostream>using namespace std;
int main ()
{
const char * name ="chen";
//name[3]='a';
name="chan";
cout<<name<<endl;
char *const name1="chen";
cout<<name1<<endl;
name1[2]='a';//这里怎么改变不了,程序不能written;
cout<<name1<<endl;
return 0;
}