ascii art loop

i forgot how to make it loop... using while statement... there is alot more code but i couldnt add it all in here...

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
  #include <iomanip>
#include <iostream>
using namespace std;

int main()
{
	int destination = 0;
	int picture = 0;

	cout << "Welcome to The Art Gallery" << endl;
	cout << "Here is a place to see all the wonders of art" << endl;
	cout << " to choose what category you would like enter one of the following" << endl;
	cout << "1 video games, 2 places, 3 cartoons, and 4 television" << endl;
	cin >> destination;

	while(destination != -1)
		switch(destination)
	{
		case 1:
			cout << "Video Game gallery" << endl;
			cout << "1 for Pikachu" << endl;
			cout << "2 for Tomb Raider" << endl;
			cout << "3 for Atomic Bomberman" << endl;
			cin >> picture;
			if(picture == 1)
			{
			
cout <<	"quu..__	" << endl;
cout << "$$$b  `---.__	" << endl;
cout << "$$b        `--.                          ___.---uuudP	" << endl;	
cout << "   `$$b           `.__.------.__     __.---'      $$$$\"              .	" << endl;
cout << "     \"$b          -'            `-.-'            $$$\"              .'|	" << endl;
cout << "       \".                                       d$\"             _.'  |	" << endl;
cout << "         `.   /                              ...\"             .'     |	" << endl;
cout << "           `./                           ..::-'            _.'       |	" << endl;
cout << "            /                         .:::-'            .-'         .'	" << endl;
cout << "           :                          ::''\\          _.'            |	" << endl;
cout << "          .' .-.             .-.           `.      .'               |	" << endl;
cout << "          : /'$$|           .@\"$\\           `.   .'              _.-'	" << endl;
cout << "         .'|$u$$|          |$$,$$|           |  <            _.-'	" << endl;
cout << "         | `:$$:'          :$$$$$:           `.  `.       .-'	" << endl;
cout << "         :                  `\"--'             |    `-.     \\	" << endl;
cout << "        :##.       ==             .###.       `.      `.    `\\	" << endl;
cout << "        |##:                      :###:        |        >     >	" << endl;
cout << "        |#'     `..'`..'          `###'        x:      /     /		" << endl;
cout << "         \\                                   xXX|     /    ./	" << endl;
cout << "          \\                                xXXX'|    /   ./	" << endl;
cout << "          /`-.                                  `.  /   /	" << endl;
cout << "         :    `-  ...........,                   | /  .'	" << endl;
cout << "         |         ``:::::::'       .            |<    `.	" << endl;
cout << "         |             ```          |           x| \\ `.:``.	" << endl;
cout << "         |                         .'    /'   xXX|  `:`M`M':.	" << endl;
cout << "         |    |                    ;    /:' xXXX'|  -'MMMMM:'	" << endl;
cout << "         `.  .'                   :    /:'       |-'MMMM.-'	" << endl;
cout << "          |  |                   .'   /'        .'MMM.-'	" << endl;
cout << "          `'`'                   :  ,'          |MMM<	" << endl;
cout << "            |                     `'            |tbap\\	" << endl;
cout << "             \\                                  :MM.-'	" << endl;
cout << "              \\                 |              .''	" << endl;
cout << "               \\.               `.            /	" << endl;
cout << "                /     .:::::::.. :           /	" << endl;
cout << "               |     .:::::::::::`.         /	" << endl;
cout << "               |   .:::------------\\       /	" << endl;
cout << "              /   .''               >::'  /	" << endl;
cout << "              `',:                 :    .'	" << endl;
			}
			else if(picture == 2)
			{
cout << "		  __   ____	" << endl;
cout << "                /   '~'   ) \\	" << endl;
cout << "               / _(__  (__   \\_`" << endl;
cout << "              / /(/  )) ) (\\ \\ \\	" << endl;
cout << "             ( / (   (     )\\ ) )	" << endl;
cout << "             )/\"-_  )_.-\"\\ (    \\	" << endl;
cout << "             )|-._     _.-- )( \\ (	" << endl;
cout << "            (/){c)\| /\"c)\"7 )|\\  )	" << endl;
cout << "             )|\"\"\"'| `\"\"\"\" ( |  /_)	" << endl;
cout << "            ( |    --       ,/ / -_)	" << endl;
cout << "              \\    __      / .\" \\ -_)	" << endl;
cout << "               \\  /--\\    //(   ( -_)	" << endl;
cout << "                \\ `--'   //     ( -_)	" << endl;
cout << "                 \\____.-\" |     ( -_)	" << endl;
cout << "                   |      |    ( -_)	" << endl;
cout << "                   |      |   ( -_)	" << endl;
cout << "                   |      |  ( -_)	" << endl;
cout << "        _________-\"\\     / \"-(_-_)___	" << endl;
cout << "       /                              \\	" << endl;
cout << "      /                                \\	" << endl;
cout << "      \\                              __ \\	" << endl;
cout << "       \\     /             /        /   |	" << endl;
cout << "       /    /      /      /        /   /	" << endl;
cout << "      /     \____ /_____.'         \__/	" << endl;
cout << "     |                             /	" << endl;
cout << "     |                        |   /	" << endl;
cout << "     |          __            |  /	" << endl;
cout << "     \\           __           /_\"	" << endl;
cout << "      \\          _           /	" << endl;
cout << "       '._______/ \________.'	" << endl;
cout << "                   ,      ,	" << endl;
cout << "                ___(      )_______	" << endl;
cout << "              ,\"   (      )      ,|	" << endl;
cout << "            ,\"     '-.__.-'    ,\" | jjs	" << endl;
cout << "          ,\"________________ ,\"  ,\"	" << endl;
cout << "         /   /  /| /) /|    /  ,\"	" << endl;
cout << "        /   /_ /\"|/\\ /\"|   / ,\"	" << endl;
cout << "       /_________________ /.\"	" << endl;
			}
			else if(picture == 3)
			{
cout << "			.-.	" << endl;
cout << "                         '-'	" << endl;
cout << "                        //	" << endl;
cout << "               _..---._/|	" << endl;
cout << "             .' .\"     '-.	" << endl;
cout << "            /__/          \\      *	" << endl;
cout << "           ====_____     __|     :	" << endl;
cout << "          /#   #\"\"\" |   /()\\    :    ..*	" << endl;
cout << "          |#   #    |   \\__/    : .'' 	" << endl;
cout << "          \\#___#____|      /   :::.. .	" << endl;
cout << "           \\______________|_...‰_: .. '*	" << endl;
cout << "  ()       // /\\||||)))))))      '   . .	" << endl;
cout << " .( \\_     \\\\_\\//   _-'.'/        |   * ..	" << endl;
cout << "( )  |^|^|^|ooo/  _#\\.//\"\"\"_      |   . . .	" << endl;
cout << "(_)_.'v|v|v|     / \\#  \\_ / '_  _'    . .  	" << endl;
cout << "           | _ _/_/     /'./_-|\"         . .	" << endl;
cout << "           /#_#__\"\"\"-._ /#  \\__)       .  .   	" << endl;
cout << "           |__   \"\"-._ |##               . . .	" << endl;
cout << "           |  \"\"|-\"\"\"-_/##              . .    	" << endl;
cout << "           /\"\"--\\__.-|                       .	" << endl;
cout << "           \\-_.-<__ /                   .   .	" << endl;
cout << "           /-_| /  \\	" << endl;
cout << "           \\-_| \\_-<.            	" << endl;            
cout << "           <_-/ <_.-\\                    .	" << endl;
cout << "           <_-|  |_.-|                        .	" << endl;
cout << "      .----|   \\__\\  |                 .	" << endl;
cout << "     |     .\"\"\"   '.  |                       .	" << endl;
cout << "      .___|        |__|  	" << endl;
cout << "          '.__...\"\"\"  	" << endl;
			}
			break;
			

1
2
3
4
5
6
7
8
9
10
11
12

	bool finished = false;

	do
	{
		
		// ... do your stuff, this will 
		// loop until you set finished to true.


	} while (!finished);  // while finished = false

Topic archived. No new replies allowed.