Chapter 6: The Primitive Types and Their InputOutput


OVERVIEW

The primitives types are the variables that are declared to hold integer, character, floating-point, and boolean values. The first half of this chapter deals mainly with representational issues concerning the primitive types. But before getting into how the primitives types are represented, especially from the standpoint of differences between C++ and Java, we will address briefly the issue of what names can be used for variables in general.

The second half of this chapter discusses the input/output stream classes in C++ and Java. Although the focus will be primarily on the I/O of the primitive types, we will also discuss where appropriate the use of the C++ and Java streams for the input/output of the string type. The direct I/O for class-type objects will be discussed briefly as a part of the discussion in one of the homework problems.




Programming With Objects[c] A Comparative Presentation of Object-Oriented Programming With C++ and Java
Programming with Objects: A Comparative Presentation of Object Oriented Programming with C++ and Java
ISBN: 0471268526
EAN: 2147483647
Year: 2005
Pages: 273
Authors: Avinash Kak

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net