Dale - Computer Science Illuminated 267

Dale - Computer Science Illuminated 267 - 240 Chapter 8...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Control structure An instruction that deter- mines the order in which other instructions in a program are executed 240 Chapter 8 High-Level Programming Languages The input stream may be from the keyboard or a data file, but the process is the same. The order in which the variables are listed on the input state- ment must be the same as the order in which the values occur in the input stream. The types of the variables being input determine how the characters in the input stream are interpreted. That is, the input stream is just a series of ASCII (or Unicode) characters. The type of the variable into which the next value is to be stored determines how a sequence of characters is interpreted. For simplicity, let’s assume that the input statement assumes that a blank separates each data value. For example, given the following data stream r7 2 "# "’h:# Rr7 2 ” would be stored in name ; "# would be stored in age , and "’h:# would be stored in hourlyWage . Both
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/13/2011 for the course CSE 1550 taught by Professor Marianakant during the Fall '10 term at York University.

Ask a homework question - tutors are online