The error I get is 'address of while(AreThereMore) will always evaluate to true.'
You need the ()'s when calling the function.
Also I see a couple of things in your AreThereMore() function:
If answer is not true, you need to set it to false. And when you compare you need to check each answer. Instead of
if (reply == 'Y'||'y') //this will always evaluate to true, I believe...because it is asking[I] if reply == 'Y' [/I]OR [I]if 'y'[/I]
{
answer=true;
cin.ignore();
}
else(reply== 'N'||'n');
{
You can say:
if (reply == 'Y'|| reply =='y')
{
answer=true;
cin.ignore();
}
else if(reply== 'N'|| reply =='n')
//or just put the else, without a comparison:
else{
//
}