Click to See Complete Forum and Search --> : creating a diamiond shape on C++ help


atinvidia
09-11-2005, 02:11 PM
:confused: ok am trying to create a diaoond shape in c++ am a newbie so am just starting to learn all that commands

the diomond shape must be in 10 rows top and 10 rows bottom

also is the command

#include <iomaip> to create a diomond?

must have 4 loops on top 10 diomond and 2 loops on the botoom 10 am having trouble with the commands

example

for init i +0; 1<3 (i++)

for (int i=0 i<3; (i++)

am gettting confused?

must be in


*
for some reasion i cant get this to work
#include <iomaip> is that how you type it?

i amlost for got it has to be in loops also 4 top and 2 bottom

Galen of Edgewood
09-11-2005, 08:17 PM
Ok....

So it's a diamond shape that's contained in a 10x10 square, right?

atinvidia
09-11-2005, 08:21 PM
yes 10 rows top 10 rows bottom 20 total help me out please :confused:

Nick_B
09-14-2005, 01:56 AM
Wait, are you trying to draw this with graphics or some such, or just make a simple diamond liek:

*
***
*****
*******
*****
***
*