- while(1)
- {
- if(zhongduan_cnt>19) //如果到了1S
- {
- zhongduan_cnt=0; //清零
- miao_di++; //秒数累加
- }
- if (miao_di>9)
- {
- miao_gao=miao_gao+1;
- miao_di=0;}
- if (miao_gao>5)
- {
- fen_di=fen_di+1;
- miao_gao=0;
- }
- if (fen_di>9)
- {
- fen_gao=fen_gao+1;
- fen_di=0;}
- display(fen_gao,fen_di,miao_gao,miao_di);
- if (miao_di==5) //5秒开始响
- if (miao_gao==0)
- if (fen_di==0)
- if (fen_gao==0)
- {
- while(1)
- {
- Play(1);
- }
- }
- }
你这了是、while(1)
{
xxxxxxxxxx
xxxxxxx
xxxx
whlie(1)
{
Play(1);
}
}
请问怎么跳出循环?
|