When you cascade cin such as
cin >> var1 >> var2;
it can recognize the two values when the user presses enter or space...
eg.
Enter 2 numbers: 4 5
or:
Enter 2 numbers: 4
5
when i try to put anything else in there it outputs the value weird...
eg. Enter 2 numbers: 4,5
or Enter 2 numbers: 4 t 5
why can the compiler only distinguish between spaces and return chars and why?



LinkBack URL
About LinkBacks



). If you want me to demonstrate how to get numbers divided by a certain character just leave a post here and i will post some code..... Don't ask me to show you how to overload >> though... been to long since i have done that kinda stuff