(C++知識實例)_2 C++for循環

一、for循環打印字符串 // for循環打印字符串 #include <iostream> using namespace std; int main() { for(int i=1;i<=3;i++) // 循環條件 { cout << "Hello" << endl;// 循環體 } return 0; } 二、for循環倒計時 (
相關文章
相關標籤/搜索