I cant display this output..how i can i declare the gender n relate it with my price..i stuck here..oop c++
i have 2 coding for this..which 1 is better..im new in this progrmmer..
void eSalon::priceCurling()
{
cout<<"\nYour Gender is: "<<gender;
if (gender=female)
{
cout<<"Long Hair Rm30-RM49"<<endl;
cout<<"Short Hair RM50-RM100"<<endl;
}
else if (gender=male)
{
cout<<"Long Hair RM46-RM70"<<endl;
cout<<"Short Hair RM20-RM45"<<endl;
}
or this 1,,
void eSalon::pricePerm()
{
cout<<"\nYour Gender is: "<<gender;
if (gender=female)
{
longHair=50-100;
shortHair=30-49;
}
else if(gender=male)
{
longHair=46-70;
shortHair=20-45;
}