#include <iostream>
using namespace std;
class A{
public :
int cc;
const int iii(){
return 10;
}
void iiri() const {
//cc = 100;
}
};
int main(){
int a = 10;
int *p1;
p1 = &a;
cout << "*p = " << *p1 << endl;
*p1 = a;
cout << "*p = " << *p1 << endl;
int *const p2 = &a;
//p2 = &a;
cout << *p2 << endl;
int b = 11;
*p2 = b;
cout << "*p2 = b; " << *p2;
int const *p3;
//*p3 = 5;
int c = 90;
p3 = &c;
cout << *p3;
const int *p;
const int d = 89;
int e = 1000;
p = &e;
const int yu(3);
const A a;
//int pp = a.iii();
}
const c++
最新推荐文章于 2022-07-13 21:41:53 发布