More stuff. I'm trying to just expand my if statement to enclude everything.
if (((myStr[i] < '0') || (myStr[i] > '9')) //allows only digits 0-9 in the string
&& ((myStr[i] != '-') &&...
Type: Posts; User: Improvolone
More stuff. I'm trying to just expand my if statement to enclude everything.
if (((myStr[i] < '0') || (myStr[i] > '9')) //allows only digits 0-9 in the string
&& ((myStr[i] != '-') &&...
I've been going through my book (unfortunatly the lectures have a habbit of not covering everything you need for the assignments, I guess that's one way to challenge you), and one example shows the...
That does work, thank you. However, this is a homework assignment that requires the use of strings so I don't think I can use yours.
By bad on the wrong forum, duly noted for any future problems.
Thanks for the quick reply.
The goal is to write program asking for the user for a float, and to put in safety nets against in-proper entries.
The following code allows the user to enter both positive and negative integers and...