早教吧作业答案频道 -->其他-->
一道英文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...的网友还看了以下:
在matlab中如何筛选得出的结果,我只需要多个结果中大于0,小于1的数clc; a0=300;b 2020-05-16 …
Pi(a*r/(2Pi))^2*Sqrt[(r)^2-(a*r/(2Pi))^2)/3求导高数求导 2020-06-05 …
Pi(a*r/(2Pi))^2*Sqrt[(r)^2-(a*r/(2Pi))^2)/3对r求导我算 2020-06-05 …
把下列各组字母含有相同读音的一组选出来.1.A.t,vB.t,aC.l,tD.b,n()2.A.r 2020-06-08 …
两个圆心角相同的扇形的面积比是1:2,则两个扇形的周长比是多少?这个怎么求,S=1/2*a*R^2 2020-07-18 …
已知函数f(x)=sin2x-(2√2+√2a)sin(x+π/4)+2a+3.x∈[0,π/2], 2020-11-01 …
lingo中如何用a,b来代表常数min=(a^2+r^2-2*a*r*cos(c1))^(1/2) 2020-11-06 …
线性代数题设A为n阶方阵,α1.α2α3.……αr为n维列向量证明:若α1.α2.……αr线性相关, 2020-11-17 …
n阶矩阵A^2=A,r(A)=r,为什么λ=1是r重特征值,0是r重特征值这个1和0的重数是怎么求出 2020-11-19 …
已知函数f(x)=sin^2x+acosx+5/8a-3/2,a∈R(1当a=1,求函数f(x)最大 2020-12-08 …