rem: if (str[0] == 'q' || str[0] == 'Q')
add: if (str.empty() || str[0] == 'q' || str[0] == 'Q')
context: main(){    cout << "/////////////////////////////////////////////////////////\n\n";    cout << "\t\tA real number parser that parses thousands separated\n";    cout << "\t\tnumbers with at most two decimal places and no exponent...\n\n";    cout << "/////////////////////////////////////////////////////////\n\n";    cout << "Give me a number.\n";    cout << "Type [q or Q] to quit\n\n";    string str;    double n;    while (getline(cin, str))    {        if (str[0] == 'q' || str[0] == 'Q')            break;        if (parse(str.c_str(), ts_real_p[assign_a(n)]).full)        {            cout << "-------------------------\n";            cout << "Parsing succeeded\n";            cout << str << " Parses OK: " << endl;            cout << "n=" << n << endl;            cout << "-------------------------\n";        }        else        {            cout << "-------------------------\n";            cout << "Parsing failed\n";            cout << "-------------------------\n";        }    }    cout << "Bye... :-) \n\n";    return 0;}