使用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;
}