C++ Primer学习总结 第4章 表达式

C++ Primer学习总结 第4章 表达式 1、左值与右值 当一个对象被用作右值的时候,用的是对象的内容(值);当对象被用作的左值得时候,用的是对象的身份(地址)。 int a = 1; int *p; decltype(*p) b = a; cout << b << endl; a = 11; cout << b << endl;//11 int a = 1; decltype(
相关文章
相关标签/搜索