My instructor provided this class for us to use. He hasn't answered the e-mail I sent, and this is due soon. I keep getting an error. I haven't touched the file, just included it.
G:\ManageActivities\Date.h|23|error: 'string' does not name a type|
#ifndef DATE_H
#define DATE_H
#include <string>
#include <sstream>
class Date
{
private:
int m_day, m_month, m_year;
public:
Date(int d, int m, int y)
{ m_day = d; m_month = m; m_year = y; }
int getDay() const { return m_day; }
int getMonth() const { return m_month; }
int getYear() const { return m_year; }
virtual string to_string()
{
stringstream s;
s << getMonth() << "/" << getDay() << "/" << getYear() ;
return s.str();
}
};
#endif