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
|
#include <iostream>
#include <string>
using namespace std;
void drawBear()
{
int i;
string bear_drawing[] =
{
" ,-~-. _.---._ ,-~-. \n",
" / .- ,' `. -. \\ \n",
" \\ ` /` ' \\' / \n",
" `-/ 'a___a` \\-' \n",
" | ,'(_)`. | \n",
" \\ ( ._|_. ) / \n",
" \\ `.___,' / \n",
" .-`._ _,'-. \n",
" ,' ,' `---' `. `. \n",
" / / : \\ \\ \n",
" ,' / : \\ `. \n",
" ,' | : | `. \n",
" | ,'| : |`. | \n",
" `.__,' .-\\ : /-. `.__,' \n",
" / `. : ,' \\ \n",
" .""-.,' `._:_,' `.,-"". \n",
" / ,-. ` ) ( ' ,-. \\ \n",
" ( ( `. ,' `. ,' ) ) \n",
" \\\\ \\ _,' `._ / / / \n",
" `.`._,' / \\ `._,', ' \n",
" `.__.-' `-.__,' \n"
};
int bear_size = (sizeof(bear_drawing) / sizeof(string));
for(i = 0; i < bear_size; i++)
{
cout << bear_drawing[i];
}
}
int main()
{
int i;
int orderQuantity;
cout<< "Enter the number of teddybears needed by next week for your customers : ";
cin >> orderQuantity;
for(i = 0; i < orderQuantity; i++) drawBear();
return 0;
}
|