Commit 268c623d authored by Kameron Kinsey's avatar Kameron Kinsey

Bleh

parent a4df8521
// 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;
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment