首页 > 代码库 > C++Day1

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;

}


C++Day1