跳转到内容

Cpp class index:修订间差异

HanyuTech留言 | 贡献
HanyuTech留言 | 贡献
第78行: 第78行:


=== 基本程序结构 ===
=== 基本程序结构 ===
'''顺序结构'''
'''分支结构'''
if 单分支


http://static.hanyu123.cn/wiki/images/cpp-structure-if.gif
http://static.hanyu123.cn/wiki/images/cpp-structure-if.gif
if-else 双分支


http://static.hanyu123.cn/wiki/images/cpp-structure-if-else.gif
http://static.hanyu123.cn/wiki/images/cpp-structure-if-else.gif
嵌套的if-else多重分支


http://static.hanyu123.cn/wiki/images/cpp-structure-multi-if-else.gif
http://static.hanyu123.cn/wiki/images/cpp-structure-multi-if-else.gif


http://static.hanyu123.cn/wiki/images/cpp-structure-switch.gif
http://static.hanyu123.cn/wiki/images/cpp-structure-switch.jpg
 
'''循环结构'''
 
while循环


http://static.hanyu123.cn/wiki/images/cpp-structure-while.gif
http://static.hanyu123.cn/wiki/images/cpp-structure-while.gif
do-while循环


http://static.hanyu123.cn/wiki/images/cpp-structure-do-while.gif
http://static.hanyu123.cn/wiki/images/cpp-structure-do-while.gif


http://static.hanyu123.cn/wiki/images/cpp-structure-for.gif
for循环
 
http://static.hanyu123.cn/wiki/images/cpp-structure-for.jpg