迴圈

1.讀取輸入

2.輸出

 

#include <iostream>

 

 

using namespace std;

int main()
{
    string str;

    while(cin >> str)
        cout << "hello, " << str << endl;

    return 0;
}
 

 
arrow
arrow
    全站熱搜

    大神(偽) 發表在 痞客邦 留言(0) 人氣()