lionel chang

导航

2012年10月26日 #

常数重叠的题目

摘要: #include<iostream> using namespace std; int a=0; void test(int []) { static int a; a=10; } int main() { const int a=2; const int *aP=&a; cout<<"before :a="<<a<<endl; int *p=const_cast<int *>(aP); *p=10; cout<<"after:a="<<a<<&quo 阅读全文

posted @ 2012-10-26 21:48 woshizyl 阅读(146) 评论(0) 推荐(0) 编辑