I got an error which is HeartRates::getAge: non-standard syntax; use '&' create a pointer to member. I think there may be something wrong with my getAge function but I have been looking at it again and again but I really didn't find any mistakes
#include <string>
#ifndef HEARTRATES_H
#define HEARTRATES_H
class HeartRates
{
private:
std::string firstName; // user's first name
std::string lastName; // user's last name
int birthMonth; // user's birth month
int birthDay; // user's birth day
int birthYear; // user's birth year
int currentMonth; // current month
int currentDay; // current day
int currentYear; // current year
public:
HeartRates();
HeartRates(std::string fN, std::string lN, int bM, int bD, int bY, int cM, int cD, int cY);
void setfN(std::string fN);
void setlN(std::string lN);
void setbM(int bM);
void setbD(int bD);
void setbY(int bY);
void setcM(int cM);
void setcD(int cD);
void setcY(int cY);
std::string getfName() const;
std::string getlName() const;
int getbM() const;
int getbD() const;
int getbY() const;
int getcM() const;
int getcD() const;
int getcY() const;
int getAge() const;
int getMaxiumumHeartRates() const;
double getTargetHeartRates(double T) const;
};
#endif