Kam_set_stats.cpp 1.15 KB
Newer Older
Kameron Kinsey's avatar
Bleh  
Kameron Kinsey committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
// Random Stat Generator

#include <cstring>
// #include <std.lib>
#include <iostream>
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;

}