Transformation program of Dragon ball

in #programming7 years ago

Program Body

#include iostream
#include string
using namespace std;
class goku{
private:
string a,an;
string b,d;
public:
void input(){
string in;
cout<<" GOKU's transformation hub"<<endl;
cout<<endl;
cout<<"Loop will run two times."<<endl;
cout<<"do you wanna see goku's transformation and details so enter 'show'"<<endl;
cout<<"or you wanna create your own transformation so enter 'create'"<<endl;
cin>>in;
an=in;
cout<<"put 'as' in create section"<<endl;
string ssj;
cin>>ssj;
b=ssj;
}
void transformm(){
for(int i=0;i<=1;i++){
if(an=="show"){
if(b=="ssj1"){
a="100K";
d="super power";
cout<<"goku's form now is "<<b<<endl<<"goku's power level now is "<<a<<endl;
cout<<"goku's special ability now is "<<d;
}
if(b=="ssj2"){
a="10M";
d="instant kamehameha";
cout<<"goku's form now is "<<b<<endl<<"goku's power level now is "<<a<<endl;
cout<<"goku's special ability now is "<<d;
}
if(b=="ssj3"){
a="2.5B";
d="dragon's wrath";
cout<<"goku's form now is "<<b<<endl<<"goku's power level now is "<<a<<endl;
cout<<"goku's special ability now is "<<d;
}
if(b=="ssj4"){
a="100B";
d="(Ozaro+super saiyan) dragon's ultimate wrath";
cout<<"goku's form now is "<<b<<endl<<"goku's power level now is "<<a<<endl;
cout<<"goku's special ability now is "<<d;
}
if(b=="ssg"){
a="100T-200T";
d="universe destruction + god KI";
cout<<"goku's form now is "<<b<<endl<<"goku's power level now is "<<a<<endl;
cout<<"goku's special ability now is "<<d;
}
if(b=="ssgss"){
a="uncontable lols";
d="god KI ultimate control and super strength";
cout<<"goku's form now is "<<b<<endl<<"goku's power level now is "<<a<<endl;
cout<<"goku's special ability now is "<<d;
}
if(b=="SsbKioken"){
a="uncountable x2";
d="super time skip";
cout<<"goku's form now is "<<b<<endl<<"goku's power level now is "<<a<<endl;
cout<<"goku's special ability now is "<<d;
}
if(b=="UI"){
a="uspecified/unkown";
d="Infinite speed and master of movement";
cout<<"goku's form now is Ultra Instinct"<<endl<<"goku's power level now is "<<a<<endl;
cout<<"goku's special ability now is "<<d;
}
}else if(an=="create"){
string m,l,n;
cout<<"enter name of transformation (without space,use '-' for spacing)"<<endl;
cin>>n;
cout<<"what could be the power level of goku at time in "<<n<<endl;
cin>>m;
cout<<"what special ability goku has in "<<n<<endl;
cin>>l;
a=m;
d=l;
cout<<"goku's form now is "<<n<<endl<<"goku's power level now is "<<a<<endl;
cout<<"goku's special ability now is "<<d;
}
}
}
};
int main(){
goku t;
t.input();
t.transformm();
}

Made in c++

I hope you liked the coding, combined with anime.

Coin Marketplace

STEEM 0.19
TRX 0.15
JST 0.029
BTC 63525.26
ETH 2583.76
USDT 1.00
SBD 2.80