摘要:
左值 左值:一个表示数据的表达式(如变量名或者解除引用的指针),程序可从堆栈上获取其地址。最初,左值可出现在赋值语句的左边,但是在有了const修饰符后,可以声明一个没有赋值的标识符并获取其地址。 //左值的例子 int n; int *pt = new int; const int b = 101 阅读全文
摘要:
隐式类型转换 Implicit conversion Standard conversions affect fundamental data types, and allow conversions such as the conversions between **1)numerical typ 阅读全文
摘要:
Exceptions provide a way to react to exceptional circumstances (like runtime errors) in programs by transferring control to special functions called h 阅读全文