早教吧 育儿知识 作业答案 考试题库 百科 知识分享

一道英文C++题Createaprogramthatwillasktheuserto:1.chooseacharacter(thisnoesbothavetobealetter,itcanbeanumberorcharacterslike#%$etc)2.choosetheshapetheywouldlike3.andchoosethehightoftheshape.Thentheshapew

题目详情
一道英文C++题
Create a program that will ask the user to :
1.choose a character (this noes bot have to be a letter,it can be a number or characters like #%$ etc)
2.choose the shape they would like
3.and choose the hight of the shape.
Then the shape will be drawn on the console window.
additional requirements:
1.there must be a user menu that will be displayed more than once that provides the shape options.
2.there are 3 shaps you candraw(正方形,直角三角形or pyramid)(other:square border and diamond and hour glass)
3must be a header file
4must be a commenting to clarify logic
HUNT:do it in stage!
限时一周内完成,最好能解释一下每一步的含义.
▼优质解答
答案和解析
写一程序,要求用户:1、选择1个字符(不一定是字母,可以是数字,或者#%$之类,等等.)2、选择喜欢的形状.3、选择形状的高度.然后,这个形状会被画在终端窗口.附加要求:1、有一个菜单,可以显示多次,提供形状选项.2、你...