Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ > extraction oper...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 6 Topic 45670 of 47989
Post > Topic >>

extraction operator

by Taras_96 <taras.di@[EMAIL PROTECTED] > Apr 30, 2008 at 06:21 AM

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
 




 6 Posts in Topic:
extraction operator
Taras_96 <taras.di@[EM  2008-04-30 06:21:23 
Re: extraction operator
"sk_usenet" <  2008-04-30 10:26:25 
Re: extraction operator
acehreli@[EMAIL PROTECTED  2008-04-30 10:42:12 
Re: extraction operator
"sk_usenet" <  2008-04-30 10:51:16 
Re: extraction operator
James Kanze <james.kan  2008-05-02 01:17:23 
Re: extraction operator
Taras_96 <taras.di@[EM  2008-05-12 18:57:38 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 15:09:08 CDT 2008.