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
|
#include <iostream>
using namespace std;
string nLine = "\n";
string image[10] =
{
//Case 1:
"",
//Case 2:
"",
//Case 3:
nLine +
" \ " + nLine +
" \ " + nLine +
" . \ " + nLine +
" \. " + nLine +
" ~-_ * ./ "
" ~-_ / " + nLine +
" * ~-/ " + nLine +
" . | " + nLine +
" * | " + nLine +
" -----------| " + nLine +
" . | " + nLine +
" * | " + nLine +
" _-\ " + nLine +
" . _-~ . \ " + nLine +
" _-~ `\ " + nLine +
" ~ /`--___ ___ " + nLine +
" * / --- " + nLine +
" / * | " + nLine +
" / | " + nLine +
" \\o/ . | " + nLine +
" _| | " + nLine +
" | ",
//Case 4:
nLine +
" :::::::::::::::::::::::::::::::::::::::::::::::::::::: " + nLine +
" :::::::::::::::::::::::::::::::::::::::::::::::::::::: " + nLine +
" :::::::::::::::::::::::::::::::::::::::::::::::::::::: " + nLine +
" ::::::::::::::::::::::::::_::::::::::::::::::::::::::: " + nLine +
" :::::::::::::::::::::::::/ |:::::::::::::::::::::::::: " + nLine +
" :::::::::::::::::::::/ \\ | | /\\::::::::::::::::::::::: " + nLine +
" ::::::::::::::::::::::\\ \\| |/ /::::::::::::::::::::::: " + nLine +
" :::::::::::::::::::::::\\ Y | /___::::::::::::::::::::: " + nLine +
" :::::::::::::::::::::.-.) '. `__/::::::::::::::::::::: " + nLine +
" ::::::::::::::::::::(.-. / /:::::::::::::::::::::::: " + nLine +
" ~^~_-~^^-^~^_~^_^-~^~^-~| ' |~^~_-~^_^-^~^_~^_^-~^~^-~ " + nLine +
" ~^-_~^-~^_~^-~^_~^-_ _^,|___| ,~_ _~^-_~^-~^_~^-~^_~^- " + nLine +
" ~^-~^~-_~^__.===~'`__..[_____]-..__`'~===.__~^-~^~-_~^ " + nLine +
" ~_~^_.=~~' ~_.==~-.-~| |~=.-~==._~^-^'~~=._~_~^ " + nLine +
" ~-:`-~^-~^_~^:-~^~-_~-.`-===-'_.=~-_~^-_:~^-~^-_~`;-~ " + nLine +
" ~-'._~^-~^-_^~=._~-~_~-'~~'~`_^-~_^_.=~-~^-_~^-_.'^- " + nLine +
" _~^-~^~=._~^-~^_-^~~==..,~_^_,..==~~-_~^-~^-_.=~_~^-~^ " + nLine +
" _-~^-~^_~^`~==.__-~^_~^-_~^-_~^-_~^-~__.==~`_-~^-~^_~^ " + nLine +
" -~_~^~-~^-~^~_~^~`~~~==,,....,,==~~~`-~_~^~-~^-~^~_~^~ " + nLine +
" ~jgs^-~^-_~^~^_-^~^-~^~-_~^-~^-~^_~^~-~^~-~^-~^-~^-~^ " + nLine +
" ~^~^-~^-~^_~^~-^~_~^-^~^~^-~^-~^~^~-^~-~^-~^~~-^~-^~^ ",
//Case 5:
nLine +
" ...vvvv)))))). " + nLine +
" /~~\\ ,,,c(((((((((((((((((/ " + nLine +
" /~~c \\. .vv)))))))))))))))))))\\`` " + nLine +
" G_G__ ,,(((KKKK//////////////' " + nLine +
" ,Z~__ '@,gW@@AKXX~MW,gmmmz==m_. " + nLine +
" iP,dW@!,A@@@@@@@@@@@@@@@A` ,W@@A\\c " + nLine +
" ]b_.__zf !P~@@@@@*P~b.~+=m@@@*~ g@Ws. " + nLine +
" ~` ,2W2m. '\[ ['~~c'M7 _gW@@A`'s " + nLine +
" v=XX)====Y- [ [ \\c/*@@@*~ g@@i " + nLine +
" /v~ !.!. '\\c7+sg@@@@@s. " + nLine +
" // 'c'c '\\c7*X7~~~~ " + nLine +
" ]/ ~=Xm_ '~=(Gm_. ",
//Case 6:
"",
//Case 7:
"",
//Case 8:
"",
//Case 9:
"",
//Case 10:
""
};
int main()
{
int type;
bool dead = false;
cout<<"Enter the type of death: ";
cin>>type;
do
{
const static string str[12] = //Array of strings
{
"Its time to die", //Death Prompt
"You will die by: falline 10000 feet... have a safe death :)", //Case: 01
"You will die by: a blind man shooting you... have a safe death :)", //Case: 02
"You will die by: heat stroke... have a safe death :)", //Case: 03
"You will die by: drowining... have a safe death :)", //Case: 04
"You will die by: a million bees... have a safe death :)", //Case: 05
"You will die by: a beaver... have a safe death :)", //Case: 06
"You will die by: 15 heart attacks in a row... have a safe death :)", //Case: 07
"You will die by: decapitation... have a safe death :)", //Case: 08
"You will die by: Hanging from the eiffel tower... have a safe death :)", //Case: 09
"You will die by: explosive decompression... have a safe death :)", //Case: 10
"How was your death hahahaha" //Death Laugh
};
if(type>0)
{
cout<<str[0]<<endl; //Death Prompt
cout<<str[type]<<endl; //Case of Death
cout<<str[11]<<endl; //Death Laugh
cout<<image[type-1]<<endl;
dead=true;
break;
}
else
{
cout << "you live" << endl; //Default: You lived!
break;//Breaking for this demonstration
}
}while(true);
return 0;
}
|