CSC 115.005/006 Sonoma State University Spring 2022
Scribbler 2
CSC 115.005/006:
Programming I
Scribbler 2
Instructor: Henry M. Walker

Lecturer, Sonoma State University
Professor Emeritus of Computer Science and Mathematics, Grinnell College


Course Home References Course Details: Syllabus, Schedule, Deadlines, Topic organization MyroC Documentation Project Scope/
Acknowledgments

Notes:

Characters, Strings, and I/O

Since the beginning of this course and up to this point, our processing has usually involved numbers. The following questions reflect many of the common processing tasks we have encountered.

In this module, we consider expand our opportunities for processing by exploring text: uppercase letters, lowercase letters, punctuation, and other characters we can type on most keyboards.

Conceptually, working with characters follows a reasonably simple idea. Behind the scenes, we know that all data within a computer are stored using circuitry, and our study of numbers indicates that data storage is based on individual circuits being on or off (often represented as 1 or 0). With binary sequences the foundation of digital computers, we can store characters (e.g., letters, punctuation, etc.), as long as we can agree upon what coding (sequence of 0's and 1's) should represent each character.

This module describes both the data types available within C for storing character data and some of the standard C libraries for handling textual input, processing, and output.

As we shall observe, some elements of working with character data may be considered reasonably straight forward. However, subtleties can arise throught data entry, processing, and printing, and we will need to be careful as we work with details.