Error invalid conversion from char to const char*

Well I have created a header file and a source file. And this invalid conversion from " char to const char*" error occurs.
The header file is:


using namespace std;
class dayType
{
public:
short whichDay();
void setDay();
void printDay();
string returnDay();
string nextDay();
string previousDay();
short laterDay();
void printLaterDay();
dayType(string = '*');
~dayType();

private:
string day;
};

short dayType::whichDay()
{
switch(day[0])
{
case 'M': return 0;
case 'T':
{
if(day[1] == 'u')
return 1;
else
return 3;
}
case 'W': return 2;
case 'F': return 4;
case 'S':
{
if(day[1] == 'a')
return 5;
else
return 6;
}
}
}
void dayType::setDay()
{
cout<<"Enter the day: ";
cin>>day;
}

void dayType::printDay()
{
cout<<"Day is: "<<day<<endl;
}

string dayType::returnDay()
{
return(day);
}

string dayType::nextDay()
{
switch(day[0])
{
case 'M': return ("Tue");
case 'T':
{
if(day[1]== 'u')
return ("Wed");
else
return ("Fri");
}
case 'W': return ("Thr");
case 'F': return ("Sat");
case 'S':
{
if(day[1]== 'a')
return ("Sun");
else
return ("Mon");
}
}
}

string dayType::previousDay()
{
switch(day[0])
{
case 'S':
{
if(day[1] == 'u')
return ("Sat");
else
return ("Fri");
}
case 'F': return ("Thr");
case 'T':
{
if(day[1] == 'h')
return ("Wed");
else
return ("Mon");
}
case 'W': return ("Tue");
case 'M': return ("Sun");
}
}

short dayType::laterDay()
{
enum dayDetail
{
Mon, Tue, Wed, Thr, Fri, Sat, Sun
};
dayDetail week;
short days;
cout<<"Enter the No. of days ahead: ";
cin>>days;
if(days == 7)
return (whichDay());
days += whichDay();
if(days < 7)
return (days);
else if(days > 6)
return ((days % 6) -1);
}

void dayType::printLaterDay()
{
switch(laterDay())
{
case 0:
{
cout<<"The day will be: Mon";
break;
}
case 1:
{
cout<<"The day will be: Tue";
break;
}
case 2:
{
cout<<"The day will be: Wed";
break;
}
case 3:
{
cout<<"The day will be: Thr";
break;
}
case 4:
{
cout<<"The day will be: Fri";
break;
}
case 5:
{
cout<<"The day will be: Sat";
break;
}
case 6:
{
cout<<"The day will be: Sun";
break;
}
default:
cout<<"Invalid Result";
}
cout<<endl;
}


dayType::dayType(string a)
{
day = a;
}

dayType::~dayType()
{
}


//The main(source file) is


#include<iostream>
#include"dayType.h"
using namespace std;

int main()
{
dayType dayIs;
dayIs.setDay();
dayIs.printDay();
cout<<"The day after is: "<<dayIs.nextDay()<<endl;
cout<<"The day before is: "<<dayIs.previousDay()<<endl;
dayIs.printLaterDay();
system("pause");
}


//The Error occurs Invalid conversion from "char to const char*"
//Please help me also. please let me know how to detect such type of
//errors in future along with how to survive from them. Thanks.
Can you edit and use [code][/code] tags and tell us where the error occurs?
 
dayType(string = '*');

'*' is a char, not a string.
Ok I got it . Thanks guys. Solved.

Topic archived. No new replies allowed.