摘要: 先上代码#include using namespace std;int main(){ // vector::iterator it=const_cast::iterator >(v.begin()); // vector::iterator it=(v.begin()); const int a=0; int &b=const_cast(a); //int &b=(int &)a;这个也可以 b=10; cout(&c); // int *d=(int *)&c; *d=10; cout<<c<<','& 阅读全文
posted @ 2014-02-18 23:07 ljlin 阅读(306) 评论(1) 推荐(0)