早教吧作业答案频道 -->其他-->
一道英文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!
限时一周内完成,最好能解释一下每一步的含义.
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、你...
看了 一道英文C++题Create...的网友还看了以下:
∑C(n,k)*u^k*(1-u)^(n-k)是多少?(0≤u≤1.0,0≤k≤n-1,其中C(n, 2020-03-30 …
为什莫U.K.和U.S.前加the.国家前不能加the比如Canada放入句子就不加the如inc 2020-04-06 …
MATLAB 如何赋值 画实部虚部图像 画图clearclcsyms a j k n u e A 2020-05-16 …
闭合电路中,错误的是:A.U内=Ir B.U外=Ir C.U外=ER/(R+r) D.U内=Er闭 2020-05-16 …
关于刹车距离的问题已知刹车距离s(m)与车速u(m每s)之间有如下关系s=tu+k乘u乘u,其中t 2020-06-05 …
2.设随机变量X的概率分布为P(X=k)=a/5k,a为常数,k=0,1,2,…,则a=————A 2020-06-17 …
<a>h)(?<b>u)(?<c>a)i\s+\k<a>\k<b>\k<c>0\d{2}5这个正则 2020-07-23 …
A.剔除蟋蟀膨大(páng)骷髅(kūlóu)B.撩拔贮存湮没(yān)应和(hè)C.骨骼蜕化叩动 2020-12-06 …
a:A交B=U(全集)b:A=U或B=Ua是b的充分非必要条件把b改成A=U且B=U那是充要吗?a: 2021-01-04 …
求一道求角终边集合的题目的解释(高1)写出终边在y轴上的角的集合.S1={β丨β=α+k·360°, 2021-02-05 …