How to draw pyramid using only C++ code

preview_player
Показать описание
How to draw pyramid using only C++ code without using any graphic libraries.
Рекомендации по теме
Комментарии
Автор

Thanks for your comment, but i must say something, for C++ you don't need explanation.Real C++ developers do everything on mind.They don't need to talk much.
Nothing personal ;)

adminos
Автор

Yeah.You just need to remake the last for loop, i to be equal to 2.

adminos
Автор

Hi sammy63611,
I am afraid that i must say "yes", for the nested for loops. Unfortunately we must use them almost in all the time, when we are drawing some shapes. We must use them in other cases too, like when we are writing bubble sort, method of short selection and etc.

adminos
Автор

Hi.. I found this video slightly helpful. Thanks for taking the time to make it. I want to make another parameter so that the output looks like a tree. So a "trunkHeight" parameter and a "width" parameter. Would I still have to use nested for loops like you have done in the video?

Again thanks for your time.

sammy
Автор

Hi shinee. In this little tutorial, as you see i am using a for statements to create the shape. Maybe i don't get what do you mean?

adminos
Автор

how do you put that vertical two lines?

gaberrfuenzalida
Автор

hey i'm a first year student how to form a pyramid using a for statement in c++?

shineeho
Автор

procedure and logic matters, please elaborate it because i can copy the code too

ayushdubey
Автор

I don't understand where the variable "Line" comes into play and how it is used to compare the height. Can you please explain?

LiveRoam
Автор

how can you change those + into blocks?

SeldiOxa
Автор

explanation is not good...visibility is poor... not a good video

SugandhKhanna
welcome to shbcf.ru