I'm having trouble working the two files together. I keep getting this error
error LNK2005: public:_thiscall datype::daytype(void)"(??0daytype@@QAE@XZ) already defined in createdaytype.obj
The same error are coming up for my printday function
Here is the daytype.cpp class code
#include <string>
#include <iostream>
class daytype {
public:
void setday(std::string day); //sets day
void printday()const; //prints day
std::string returnday()const; // returns day
std::string returnnextday()const; //returns next day
std::string returnpreviousday()const; //returns previous day
daytype(); //constructor
private:
std::string daylist[7];
int currentday; //holds index of array