TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: MIKE WALKER
from: JERRY JANKURA
date: 1997-04-02 22:26:00
subject: Streams

MW>Jerry Jankura wrote in a message to Mike Walker:
MW> JJ> Mike - Let me offer a few advantages of stream I/O
MW>The notation looks a little strange at first. Expecially for someone not 
used
MW>to C++ yet. :-) Can you tell me what you mean by "in-core" storage? Are 
ou
MW>refering to writting to memory?
You're correct on both counts - in-core storage is writing to a memory
buffer (but doesn't using the term "in-core storage" sound better?) and
the idea of using the left and right shift operators to insert and
extract characters from a stream first looks strange.
MW>So then if I was displaying a user defined record of some kind I could 
extend
MW>cout to display/store my record type? This sounds pretty pretty neat, I'll
MW>have to look into this a little.
Yep, if you write an insertion operator for an object, you can insert it
into a stream just like you do a character or integer. But, the trick to
remember is that you MUST write the operator.
MW>Really I did not realize the stdio was parsed at run time. This would be a
MW>definate plus for stream io wouldn't it?
I think so. Also, one fellow also mentioned that you can't run into
problems caused by pushing the wrong kind of data onto the stack for the
format expression.
---
 * OLXWin 1.00b * * DisneyLand: A people trap operated by a mouse.
--- InterEcho 1.19
---------------
* Origin: PC-Ohio PCBoard * Cleveland, OH * 216-381-3320 (1:157/200)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.