I'm not sure what I did wrong, I'm pretty new to c++ and I included the "string" library and using std. but I still get an error, I didn't include all my code, since its unnecessary
ERROR
./year.h:25:5: error: unknown type name 'string'; did you mean 'std::string'?
string monthStr();
^~~~~~
std::string
CODE SOURCE
#include <iostream>
#include <iomanip>
#include <string>
#include "Year.h"
using namespace std;
string Year::monthStr()
{
if (m >= 1 && month <= 12) return monthStrings[month - 1];
else return "Unknown";
}