Absolute C++学习笔记2

简介: The main topics of the chapter2 are BOOLEAN EXPRESSION,BRANCHING MECHANISMS and LOOPS.

The main topics of the chapter2 are BOOLEAN EXPRESSION,BRANCHING MECHANISMS and LOOPS.

          There is a point which would be worth to notice,the point is int value can be used as boolean.The 0 would be recognised as false,the others would be recognised as true.

          Branching mechanisms have two kinds of method,if--else and switch--case.

          The third part introduces while,do--while and for statements.In this part,the author also introduce the comma operator,which use to get the last value to itself.The difference between while and do--while is the do--while statement will run one time at least,the while not.They have the same result in the other environment.

        

目录
相关文章
|
1月前
|
C++
【C++】学习笔记——继承_2
【C++】学习笔记——继承_2
22 1
|
1月前
|
存储 算法 编译器
程序与技术分享:C++模板元编程学习笔记
程序与技术分享:C++模板元编程学习笔记
|
1月前
|
存储 C++ 容器
【C++】学习笔记——map和set
【C++】学习笔记——map和set
17 0
|
1月前
|
C++
【C++】学习笔记——二叉搜索树
【C++】学习笔记——二叉搜索树
15 0
|
1月前
|
编译器 C++
【C++】学习笔记——多态_2
【C++】学习笔记——多态_2
17 0
|
1月前
|
编译器 C++
【C++】学习笔记——多态_1
【C++】学习笔记——多态_1
11 0
|
1月前
|
程序员 编译器 C++
【C++】学习笔记——继承_1
【C++】学习笔记——继承_1
13 0
|
1月前
|
编译器 C++
【C++】学习笔记——模板进阶
【C++】学习笔记——模板进阶
17 0
|
1月前
|
C++ 容器
【C++】学习笔记——优先级队列
【C++】学习笔记——优先级队列
14 0
|
1月前
|
C++ 容器
【C++】学习笔记——stack和queue
【C++】学习笔记——stack和queue
13 0