NEED HELP! (CONFUSED......)

Hey guys i need help. i know its basic but its really confusing for me so im asking for a help. I need to create this shapes in c++ along with hello world!
i know how to print hello world as cout <<...... but dont know how to make this shapes as shown in picture. i've looked at some peoples project and they seems to just drawing the shapes idk. please help me!!

here is the link for the pic of shapes:
http://i1383.photobucket.com/albums/ah292/jinlee214/shapes_zpsda54e254.jpg
Use loops . Then show us what you have done. We'll then pick it from there.
Did you try to use search?
First thing that popped out, there is way more.
http://www.cplusplus.com/forum/beginner/14955/

BTW:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <iostream>

int main()
{
    std::cout << "*********\n"
                 "*       *\n"
                 "*       *\n"
                 "*       *\n"
                 "*       *\n"
                 "*       *\n"
                 "*       *\n"
                 "*       *\n"
                 "*********\n";
}
*********
*       *
*       *
*       *
*       *
*       *
*       *
*       *
*********
i havent learned loops yet but here is what i did so far and its not showing as pic..........

http://i1383.photobucket.com/albums/ah292/jinlee214/shapes1_zps23a2a646.jpg

Last edited on
remove all \n in the rectangle and arrow leaving only those for the diamond.

Please, post your code here and using code tags so we can copy and past.
ok i removed all \n and now the screen looks like this (http://i1383.photobucket.com/albums/ah292/jinlee214/shape2_zpsc18e4fcc.jpg)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include<iostream>
using namespace std;

int main()
{
    cout << "*********"     "*"         "*\n"
            "*       *"    "***"      "*   *\n"
            "*       *"   "*****"    "*     *\n"
            "*       *"     "*"     "*       *\n"
            "*       *"     "*"    "*         *\n"
            "*       *"     "*"     "*       *\n"
            "*       *"     "*"      "*     *\n"
            "*       *"     "*"       "*   *\n"
            "*********"     "*"         "*\n";
This works.
Take note of the changes.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include<iostream>
using namespace std;

int main()
{
    cout << "*********       *           *\n"
         << "*       *      ***        *   *\n"
         << "*       *     *****      *     *\n"
         << "*       *       *       *       *\n"
         << "*       *       *      *         *\n"
         << "*       *       *       *       *\n"
         << "*       *       *        *     *\n"
         << "*       *       *         *   *\n"
         << "*********       *           *\n";
    return 0;
}
Topic archived. No new replies allowed.