void simulateGev(int generations) { // starting with 2 guys, traits determined randomly Segev guy1 = newGuy(); Segev guy2 = newGuy(); // using punnet square breed them }
void Interface::addNew() { string firstName, lastName; char gender; int yob, yod; cout << "Please fill in the fields below\n"; cout << "First name: "; cin >> firstName; cout << "Last name: "; cin >> lastName; cout << "Gender?" << endl; cout << "m for male" << endl; cout << "f for female" << endl; cout << "o for other" << endl; cin >> gender; cout << "Year of birth: "; cin >> yob; cout << "Year of death, if the person is still alive enter 0\n"; cin >> yod; ComputerScientist newGuy(firstName,lastName,gender,yob,yod); //Adds the Computer Scientist to the vector and then file sl.addNew(newGuy); }