Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int x = 0; x<6; x++)
- {
- if (x==0)
- {
- std::cout<< "input strength: " <<std::endl;
- std::cin >> stats[x];
- }
- if (x==1)
- {
- std::cout<<"input dexterity: " << std::endl;
- std::cin >> stats[x];
- }
- if (x==2)
- {
- std::cout<< "input inteligence: " <<std::endl;
- std::cin >> stats[x];
- }
- if (x==3)
- {
- std::cout<<"input perception: " << std::endl;
- std::cin >> stats[x];
- }
- if (x==4)
- {
- std::cout<< "input constitution: " << std::endl;
- std::cin >> stats[x];
- }
- if (x==5)
- {
- std::cout<<"input willpower: " << std::endl;
- std::cin >> stats[x];
- }
- if (stats[0] + stats[1] + stats[2] + stats[3] + stats[4] + stats[5] > 30)
- {
- std::cout<< "you used too many points." << std::endl;
- x= 0;
- for (x; x <6 ;x++)
- {
- stats[x] = 0;
- }
- x = -1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement