这个程序用来输出正方形,哪儿错了? - 爱问答

(爱问答)

这个程序用来输出正方形,哪儿错了?

#include<iostream>#include<string>using namespace std;void p_square(char ch,int row)//This function is used to output squares{string chs(row,ch);//This is the output of each linefor(int i;i<=row;++i)cout<<chs<<endl;}int main(){    int row;    //This is the number of rows and columnschar ch;//This is the character to be outputcin>>ch>>row;p_spuare(ch,row);return 0;

}

报错:“21 20 [Error] 'p_spuare' was not declared in this scope”

代码放成一行, 让别人怎么看?故意的?

下一篇:可以找出文档中的同音字吗?

上一篇:本来是要怎么样结果由于什么原因结果又怎么样

热门标签:
excel 网盘 破解 word dll
最新更新:
微软重新评估新的Outlook的使用时机 联想推出搭载联发科Helio G80芯片组的Tab M9平板 英特尔创新大赛时间确定! 微软Edge浏览器在稳定渠道中推出Workspaces功能 英伟达RTX4060TiGPU推出MaxSun动漫主题! 谷歌地图为用户提供了街景服务! GameSir 在T4 Kaleid中推出了一款出色的控制器! 微软开始在Windows 11 中测试其画图应用程序的新深色模式! LG电子推出全球首款无线OLED电视 英伟达人工智能芯片崭露头角! Steam Deck可以玩什么游戏-Steam Deck价格限时优惠 雷蛇推出CobraPro鼠标 Kindle电子阅读器可以访问谷歌商店吗 Windows10如何加入组策略 window10图片查看器怎么没有了?