Code:#include<iostream> #include<string> using namespace std; int main() { int ice = 20; int fireball = 20; int lighting = 20; int water = 20; int mana = 80; char jutsu; cout << "Press F for FireBall Jutsu" << endl; cout << "Press I for Ice Jutsu" << endl; cout << "Press L for Lighting Jutsu" << endl; cout << "Press W for Water Jutsu" << endl; cin >> jutsu; switch (jutsu) { case 'F': cout << " You Surround Yourself In Fire!" << endl; cout << " You Gain 5 str!" << endl; break; case 'I': cout << " You Surround Yourself In Ice!" << endl; cout << " You Gain 5 def!" << endl; break; case 'L': cout << " You Surround Yourself In Lighting!" << endl; cout << " You Gain 5 sta!" << endl; break; case 'W': cout << " You Surround Yourself In Water!" << endl; cout << " You Gain 5 dex!" << endl; break; default: cout << " Thats Not A Valid Jutsu!" << endl; } system("PAUSE"); return 0; }
Ok so this is a little code for a game.Now what im having trouble figuring out is
how would i add 5 str or dex or chr?
the 20 is how much mana it takes to activate
and the 80 is how much mana you have.