#include <iostream>using namespace std;int main(){ int i=10; int j=20; int * const cp = &i; cout<<*cp<<endl; (*cp)++; //ok: Can modify the variable pointed cout<<*cp<<endl; //cp = &j; //error: Canot modify a const object const int * pc ; pc = &i; cout<< Read More
posted @ 2012-11-20 00:06 庚武 Views(223) Comments(0) Diggs(0)