摘要:
关于const的用法限制,可以用下面的一张表来表示 const int *p int cont *p int *const p ... 阅读全文
摘要:
这是代码: #include #include using namespace std; typedef struct MyStruct{ int a; }; void TestConstCase() { const MyStruct st = {100}; (const_cast(&st))->a--; cout<<st.a<<endl; } int ma... 阅读全文