reset password
Author Message
jyoung18
Posts: 30
Posted 20:34 Jan 08, 2015 |

Do we assume good input or do you want us to do validation?

redge
Posts: 31
Posted 20:35 Jan 08, 2015 |

Given that we haven't even touched on exception handling yet, I think it's safe to assume valid input.

kknaur
Posts: 540
Posted 05:14 Jan 09, 2015 |

It's always a good idea to incorporate proper error checking into your software.  For this class however, if I do not mention that you have to do so, it is optional to include and you can assume proper input when I test your programs. 

I assume everyone does know by now how to use simple loops and if/else statements to check for basic errors.

kevinmowers@yahoo.com
Posts: 49
Posted 17:39 Jan 09, 2015 |

can we use cin.fail() ?

kknaur
Posts: 540
Posted 17:52 Jan 09, 2015 |

If you can figure out how to use it correctly then yes you may.