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;
}
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。