C++Day1

使用3個用戶定義的函數包括main(),並生成下面的輸出,其中 一個調用兩次,生成前兩行,另一個調用兩次,生成後兩行。

there blind mice

there blind mice

see how they run

see how they run


程序如下:

int mice();

int run();


int main()

{

mice();

mice();

run();

run();

return 0;


}


int mice()

{

cout<<"there blind mice"<<endl;

return 0;


}


int run()

{

cout<<"see how they run"<<endl;

return 0;

}


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章