void getSingerName(string typedInBand)
{
if (typedInBand = "metallica") ***
{ cout<<"james\n";}
else {cout<<"phil\n";}
}

***try using strcmp or atleast ==
getSingerName(String blah blah) is called with void ??