Code Examples
from

Chapter 6
The Primitive Types And Their Input/Output

of
Programming with Objects




NOTE: Browsers generally have difficulty displaying source code files in
their raw form.  A browser may also gratuitously enclose a raw source
code file within html tags for the purpose of display.  So it is best to
right-click on the items listed below and to then click on the "save
link as" or the "save target as" menu item for directly transferring the
file to your local disk.



CharEscapes.cc


CharEscapes.java



Promo.cc



StandardConvert.cc



Widening.java



Narrowing.java



ExplicitCast1.cc



ExplicitCast2.cc



ExplicitCast1.java



ExplicitCast2.java



TestFilePosition.cc



TestFilePosition2.cc



GetThirdType.cc



BinaryFileIO.cc



BinaryFileIO2.cc



WriteBinaryIntsToFile.cc



BinaryFileIO3.cc



Skipws.cc



WriteIntToFile.java



WriteStringToFile.java



ReadIntFromFile.java



ReadStringFromFile.java



ObjectIO.java




Back to the home page for Programming with Objects