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 comma separated list parser for Spirit...\n\n";    cout << "/////////////////////////////////////////////////////////\n\n";    cout << "Give me a comma separated list of identifiers.\n";    cout << "An identifier is comprised of one or more alphabetic characters.\n";    cout << "The identifiers will be inserted in a vector of numbers\n";    cout << "Type [q or Q] to quit\n\n";    string str;    while (getline(cin, str))    {        if (str[0] == 'q' || str[0] == 'Q')            break;        vector<std::string> v;        if (parse_identifiers(str.c_str(), v))        {            cout << "-------------------------\n";            cout << "Parsing succeeded\n";            cout << str << " Parses OK: " << endl;            for (vector<std::string>::size_type i = 0; i < v.size(); ++i)                cout << i << ": " << v[i] << endl;            cout << "-------------------------\n";        }        else        {            cout << "-------------------------\n";            cout << "Parsing failed\n";            cout << "-------------------------\n";        }    }    cout << "Bye... :-) \n\n";    return 0;}