creating a diamiond shape on C++ help

Sharky Forums


Results 1 to 4 of 4

Thread: creating a diamiond shape on C++ help

  1. #1

    Question creating a diamiond shape on C++ help

    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
    Last edited by atinvidia; 09-11-2005 at 02:48 PM.

  2. #2
    Texan Dragon Moderator Galen of Edgewood's Avatar
    Join Date
    Sep 2000
    Location
    Ft Irwin, CA
    Posts
    5,602
    Ok....

    So it's a diamond shape that's contained in a 10x10 square, right?
    Dragon of the OC Crusaders

    Break the rules and you're snack food for this dragon...

  3. #3
    yes 10 rows top 10 rows bottom 20 total help me out please

  4. #4
    Hammerhead Shark
    Join Date
    Mar 2001
    Location
    Littleton, CO
    Posts
    2,704
    Wait, are you trying to draw this with graphics or some such, or just make a simple diamond liek:
    Code:
       *
      ***
     *****
    *******
     *****
      ***
       *
    Nick_B
    Currently running Ubuntu and Windows 7.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •