Answer

Easy-we simply use an array containing N floating-point numbers. If N is 100, for example, the declaration would look like:

  float temps[100];

Thus, the segments are numbered from 0 through 99.

Return to lesson.



Eric N. Eide
Hamlet Project
Department of Computer Science
University of Utah