語法:
[init_statement] //初始化循環(huán)指標(biāo)
while (test_expression){
statement;
[iteration_statement] //迭代循環(huán)指標(biāo)
}
|
eg:
int count = 10 ;
// 循環(huán)5次
while ( count < 15 ){
......
count++;
}
|
do while循環(huán)
語法:
do
{
statement;
[iteration_statement]
//迭代循環(huán)指標(biāo)
}
while
(test_expression);
2015職稱計(jì)算機(jī)考試書PowerPoint2007中 .. 定價:¥45 優(yōu)惠價:¥42 更多書籍 | |
2015年全國職稱計(jì)算機(jī)考試教材(2007模 .. 定價:¥225 優(yōu)惠價:¥213 更多書籍 |