#include<iostream.h>
main(){
int x=5,y=6;
const int*p=&x;
*p=y;
cout<<*p<<endl;
*P=Y;错误,因为指向常量的指针P不能进行左值操作
#include<iostream.h>
main(){
int x=5,y=6;
const int*p=&x;
*p=y;
cout<<*p<<endl;
#include<iostream.h>
main(){
int x=5,y=6;
const int*p=&x;
*p=y;
cout<<*p<<endl;
*P=Y;错误,因为指向常量的指针P不能进行左值操作