Advertisement
Guest User

Untitled

a guest
Nov 30th, 2015
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.77 KB | None | 0 0
  1.                                 int skillPoints = 21;
  2.                                 string pointDistribution;
  3.                                 while (skillPoints > 0)
  4.                                 {
  5.                                     system("CLS");
  6.                                     cout << "You have " << skillPoints << " points." << endl;
  7.                                     cout << endl <<"1. " << strengthLevel << endl << "2. " << agilityLevel << endl << "3. " << wisdomLevel << endl << "4. " << luckLevel << endl << "5. " << intelligenceLevel << endl << "6. " << charismaLevel << endl;
  8.                                     cout << "Where do ypou want to put your point?" << endl;
  9.                                     cin >> pointDistribution;
  10.                                     transform(pointDistribution.begin(), pointDistribution.end(), pointDistribution.begin(), tolower);
  11.                                     if (pointDistribution == "strength"|| pointDistribution == "1")
  12.                                     {
  13.                                         strength + 1;
  14.                                         --skillPoints;
  15.                                     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement