rvalue and lvalue
2013-10-02 22:05
281 查看
In C++, the distinction is less simple. In C++, an lvalue expression yields an object or a function.However, some lvalue, such as const objects, may not be the left-hand operand of an assignment.Moreover,some expressions yield objects as an rvalue,we use
the object's value(its contents).When we use an object as an lvalue,we use the object's identity(its location in memory).
the object's value(its contents).When we use an object as an lvalue,we use the object's identity(its location in memory).
相关文章推荐
- UIButton如何正确调整imageView及titleLabel的位置
- UIView的AutoSizing
- easyui简单使用
- POJ 2299 Ultra-QuickSort(归并排序求逆序数)
- 移动应用界面原型构建工具,交互设计师的利器
- Ubuntu 编译内核-"mkimage" command not found - U-Boot images will not be built
- Java多线程之BlockingQueue(一)
- Warning: Attempt to present A on B whose view is not in the window hierarchy!
- [leetcode]N-Queens II
- 【C】——APUE小程序之递归遍历目录
- [leetcode]N-Queens
- 用Ogre实现《天龙八部》场景中水面(TerrainLiquid)详解
- RMQ(Range Minimum/Maximum Query)-ST算法
- Android requires compiler compliance 错误解决方法
- uva10534 - Wavio Sequence O(nlgn)的最长上升子序列
- request 获取各项参数以及意义
- 2014年Baidu的Interview Question(02)【转载】
- 2014年Baidu的Interview Question(01)【转载】
- [LeetCode] Unique Binary Search Trees II
- Android开发优化之——对界面UI的优化