I'm a total beginner with only traces of memory from C language class. Right now I'm working on a calender project and I don't know what is wrong with it because it keeps giving me these 3 errors that all pretty much say,
"'Date::Date(char,int,int)' : cannot convert parameter 1 from 'const char [6]' to 'char'"
Here is the code from my header file:
class Date
{
private:
char month;
int day,year;
Declaration: Date(char sm, int sd, int sy);
Arguments passed: Date d1("April",3,2009);
Error message: Date::Date(char,int,int)' : cannot convert parameter 1 from 'constchar [6]' to 'char'
It's just what the error says, the parameter is a single char, you are passing a sequence of characters.
Declare 'sm' as std::string -after you #included <string> -