Last edited on
string::compare is for three-way comparison. You only need a boolean comparison, so if(*input == "ABCDP,")
(incidentally, why is the function taking a string*
parameter? Use const string& input
, then the comparison becomes the usual if(input == "ABCDP,")