Making a simple math program calculating the quadratic formula so that I can get practice using multiple methods and basic in/out prompts. I wanted to add a simple check to make sure that what is being inputed for "a", "b", or "c" isn't a character that cannot be used in a calculation. Not sure about how to work the exception for it. Any advice? This is what I have so far..
See http://www.parashift.com/c++-faq-lit....html#faq-15.2 for full explanation.
If something that is not a float is entered for a, then b and c will not actually be read. Depending on how you want to handle it, you could check after each input or after several inputs.
PS closing code tag is [/code], not [code].
Cheers, D Drmmr
Please put [code][/code] tags around your code to preserve indentation and make it more readable.
As long as man ascribes to himself what is merely a posibility, he will not work for the attainment of it. - P. D. Ouspensky
Bookmarks