#ifndef MATT_GATEZ_BOT_H
#define MATT_GATEZ_BOT_H
#include <map>
#include <string>
#include <vector>
using std::string;
using std::vector;
using std::map;
class MattGatezBot
{
public:
MattGatezBot()
{
vector<int> rangeOne = {0, 15};
theMap.insert({rangeOne, "too young"});
vector<int> rangeTwo = {16, 18};
theMap.insert({rangeTwo, "sexy future wifey"});
vector<int> rangeThree = {19, 25};
theMap.insert({rangeThree, "is great"});
vector<int> rangeFour = {26, 35};
theMap.insert({rangeFour, "is ok. "});
vector<int> rangeFive = {36, 45};
theMap.insert({rangeFive, "too old. "});
vector<int> rangeSix = {46, 55};
theMap.insert({rangeSix, "too old and is a granny. "});
vector<int> rangeSeven = {56, 100};
theMap.insert({rangeSeven, "*vomits at the thought. *"});
}
string opinion(string name, int age)
{
for(map<vector<int>, string>::iterator it = theMap.begin(); it != theMap.end(); it++)
{
if(((it -> first)[0] <= age) && ((it -> first)[1] >= age))
{
string toReturn = name;
toReturn.append(it -> second);
return toReturn;
}
}
}
string childServicesRadingPlace();
string caught();
private:
map<vector<int>, string> theMap;
};
#endif