Mar 16, 2013 at 8:46pm Mar 16, 2013 at 8:46pm UTC
What do you mean by that?
I removed 'cin.ignore()' but I still came up with the error.
Mar 16, 2013 at 8:55pm Mar 16, 2013 at 8:55pm UTC
did you notice this line if (option == 1)
instead of if (cin == 1)
just copy my source code and compile it
Last edited on Mar 16, 2013 at 8:55pm Mar 16, 2013 at 8:55pm UTC
Mar 16, 2013 at 8:56pm Mar 16, 2013 at 8:56pm UTC
Worked it out... I really am a noob. For the record when using 'if' i should of replaced 'cin' with 'option' (variable)
Mar 16, 2013 at 9:08pm Mar 16, 2013 at 9:08pm UTC
You not a noob you're cpp programmer that's something
and yes you "should of replaced 'cin' with 'option' (variable)"
hope you the best
Mar 16, 2013 at 9:19pm Mar 16, 2013 at 9:19pm UTC
I know the question is already answered, but think of it this way- you use cin only when getting computer input, to assign to a variable. From there, you only use what variable you assigned that input to, instead of using cin again.
Hope this helps!