My program has no problems until reaching the string Date::showDate member function. Why is an error occurring when no error occurs for the others. Does string have different sets of rules?
#include <string>
bool Date::setDay(int d)
{
}
bool Date::setMonth(int m)
{
    
}
bool Date::setYear(int y)
{
}
int Date::getDay()
{
    return day;
}
int Date::getMonth()
{
    return month;
}
int Date::getYear()
{
    return year;
}
string Date::showDate()
{
}
 
    