An Introduction to Input and Output

  • I. R. Wilson
  • A. M. Addyman

Abstract

The Pascal statements to read data are best defined informally. As stated earlier, any number of data items may be read in one read statement, by listing in brackets the variables to be assigned values. The declared type of each variable, in turn, determines the type of data item read—integer, real or char. Except for char, all of the forms of non-named constant described in chapter 4 may appear as data. Items of non-character data must be separated from each other by at least one space or newline. Spaces and newlines are ignored before reading a noncharacter data item and the character which terminates the number is not read. Thus the following declarations and read statements correspond to the data given Open image in new window data Open image in new window

Keywords

Data Item Field Width Output Device Character Representation Practical Introduction 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© I. R. Wilson and A. M. Addyman 1982

Authors and Affiliations

  • I. R. Wilson
    • 1
  • A. M. Addyman
    • 1
  1. 1.Department of Computer ScienceUniversity of ManchesterUK

Personalised recommendations