Hi all,
Jesse Liberty writes:
"cin.get() >>myVarOne >myVarTwo; // illegal
The return value of (cin.get() >myVarOne) is an integer, not an
iostream object."
(http://newdata.box.sk/bx/c/htm/ch16.htm)
I would think that that the reason why this wouldn't work is because
cin.get() returns an int, not because (cin.get() >mVarOne) is an
integer...
Anyone agree?
Taras
Jesse Liberty writes:
"cin.get() >>myVarOne >myVarTwo; // illegal
The return value of (cin.get() >myVarOne) is an integer, not an
iostream object."
(http://newdata.box.sk/bx/c/htm/ch16.htm)
I would think that that the reason why this wouldn't work is because
cin.get() returns an int, not because (cin.get() >mVarOne) is an
integer...
Anyone agree?
Taras
Comment