Ask your own question, for FREE!
Computer Science 10 Online
OpenStudy (anonymous):

http://ideone.com/cNqyO how do I write a cin istream object, as well as a stream extraction operator? How do I write the istream class in Python to emulate C++'s cin?

OpenStudy (shadowfiend):

The key detail with cin is that it works based on types and function overloading. If you want to ignore that, though, you just need the read function combined with some limited parsing (specifically, looking for a delimiter in the input to split by). cin has a defined set of delimiters that you can change, as I recall.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!