首页
/
每日頭條
/
知識
/
C中do的作用
C中do的作用
更新时间:2025-11-02 00:09:19

  do和while結合使用,在C++中do while循環語句使用格式如下:do後面接循環體,while後接條件,do表示這個循環的開始,while表示這個循環的結尾,如果程序執行到while,當while裡面的條件為真,則繼續從do開始循環運行,如果為假,則跳出循環執行while以下的語句。

Comments
Welcome to tft每日頭條 comments! Please keep conversations courteous and on-topic. To fosterproductive and respectful conversations, you may see comments from our Community Managers.
Sign up to post
Sort by
Show More Comments
Copyright 2023-2025 - www.tftnews.com All Rights Reserved