question.rar - 在函数hat(int nrows)中填充空格,以便它输出以下nrows=6的模式。
# # # # # * # # # # #
# # # # * # * # # # #
# # # * # # # * # # #
# # * # # # # # * # #
# * # # # # # # # * #
* # # # # # # # # # *
void hat(___________){
int row, pound, star;
for(row=1; row<=________; row++){
for(pound=________; pound<=__________; pound++)
cout << "#";
for(star=________; star<=__________; star++)
if(star == 1 __________ star == __________)
cout << "*";
else
cout << __________;
for(pound=1; pound<=nrows-row; pound++)
cout << "#";
______________ ;
}
},2020-11-24 18:16:27,下载0次