// Random Stat Generator #include // #include #include using namespace std; // class Stats { // private: // int fight, // flight, // think, // talk, // health = 100; // public: // int setStats(Stats); // }; int main() { int fight, flight, think, talk, health = 100; string playerName; cout << "Enter Player Name: "; cin >> playerName; cout << playerName << "'s stats" << endl << "========================" << endl << "Fight: " << fight << endl << "Flee: " << flight << endl << "Brain: " << think << endl << "Talk: " << talk << endl; return 0; } // Stats::Stats() { // fight = rand() % 20 + 5; // flight = rand() % 20 + 5; // think = rand() % 20 + 5; // talk = rand() % 20 + 5; // return // } void setStats(int &fight, int &flight, int &think, int &talk) { fight = rand() % 20 + 5; flight = rand() % 20 + 5; think = rand() % 20 + 5; talk = rand() % 20 + 5; }