strings

Pages: 12
at this point I'm just guessing because I don't know
1
2
3
4
5
6
else
{
        cout << "Oi, that's not a proper ZIP code!";
        cout << "Enter a five-character ZIP code (-1 to end): ";
	cin >> zipCode;
}


Have you dealt with the else-if block?

-Albatross
Last edited on
some ... but I don't see where the if part that indicates it meets the parameters of starting with 605 or 606
I just gave you the else block, that's all. Not the if and the else if... I thought you dealt with those?

-Albatross
I don't know how to indicate the range for the zipcode parameters
Convert the zipcode string to an int and then use > and <?
http://cplusplus.com/articles/numb_to_text/

-Albatross
Topic archived. No new replies allowed.
Pages: 12