
c++primer学习笔记
文章平均质量分 64
吃掉吃掉
反对反对
展开
-
c++primer学习笔记(3)-Compound Types(pointers and references) and const Qualifier.
1. The concept of Compound Types:A compound type is a type that is defined in terms of another type, C++ has several compound types, two of which---references and pointers.declarations consist o原创 2015-01-03 10:39:45 · 1272 阅读 · 0 评论 -
c++primer学习笔记(1)-primitive buit-in types and type conversions
1.关于 unsigned 的注意事项:1.unsigned int 可以缩写成 unsigned2.当用到char类型时,char 有3种形势,char, signed char 和unsigned char , 当我们写char 时,编译器会从signed char 和unsigned char 中选一种。signed char 是 -127 ~ 127, unsigned cha原创 2014-12-31 00:32:47 · 658 阅读 · 0 评论 -
c++primer学习笔记(2)-Variables(names initialization scope declare)
Initializers:1.被初始化的变量在create那一瞬间得到值:double price = 109.99, discount = price * 0.6; 这样的定义是合理的。Three ways of initialization:1. int units = 0;2. int units = {0};3. int units{0};4. int原创 2015-01-01 09:59:29 · 737 阅读 · 0 评论