I'm having a problem with my header file. For some reason it gives me errors about the strings. In Header.h I have
#include <string>
#ifndef HEADER_H
#define HEADER_H
class Player
{
    public:
    string firstName;
    string lastName;
    int birthYear;
    string *matchDates;
    string toString();
    void addMatchDate(string date);
    Player();
    Player(string firstName, string lastName, int birthYear);
    ~Player();
};
#endif
But for God knows what reasons, it gives me a bunch of errors. These are some of the errors:
Error C2146: syntax error : missing ';' before identifier 'firstName' Error C2146: syntax error : missing ';' before identifier 'lastName' Error C2061: syntax error : identifier 'string'
Any ideas how to solve this?
 
    