getPatientPolicyNo( ): Returns the patient’s policy number.
If the patientPolicyNo is blank, then send a message to the screen and exit(2).
String getPatientPolicyNo( );
The compiler doesn't recognize the "" (space) I have in my control statement. It doesn't generate error. Can anyone help what I did wrong here? Thanks
if (patientPolicyNo == "")
cerr << "Invalid policy number" << endl;
#include <iostream> #include <string> using namespace std;