Fundamentals of Computer Science I (CS151 2003F)
[Skip to Body]
Primary:
[Front Door]
[Current]
[Glance]
-
[Honesty]
[Instructions]
[Links]
[Guidelines for Lab Writeups]
Groupings:
[EBoards]
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Outlines]
[Readings]
[Reference]
Misc:
[Scheme Report]
[Glimmer Scheme Reference]
[CSC151.01 (Gum)]
[CSC151 2003S]
[CSC151 2002F]
[SamR]
Back to Vectors. On to Pause for Breath.
Held: Tuesday, 28 October 2003
Summary: Today we consider why and how to make Scheme do explicit input and output.
Related Pages:
Assignments
Notes:
Overview:
display.
(display val) displays a value,
eliminating the quotation marks from around strings.
(newline) procedure that
starts a new line of output.
write,
that works a lot like display except that it also
displays quotation marks around strings and displays characters
with the #\.
write-char, only works with
characters.
read, which
reads one Scheme value, skipping whitespace as appropriate.
read-char, which reads a single character for input.
read is an interesting procedure. In many cases, it will
continue to read for more than one line.
Back to Vectors. On to Pause for Breath.
[Skip to Body]
Primary:
[Front Door]
[Current]
[Glance]
-
[Honesty]
[Instructions]
[Links]
[Guidelines for Lab Writeups]
Groupings:
[EBoards]
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Outlines]
[Readings]
[Reference]
Misc:
[Scheme Report]
[Glimmer Scheme Reference]
[CSC151.01 (Gum)]
[CSC151 2003S]
[CSC151 2002F]
[SamR]
Disclaimer:
I usually create these pages on the fly
, which means that I rarely
proofread them and they may contain bad grammar and incorrect details.
It also means that I tend to update them regularly (see the history for
more details). Feel free to contact me with any suggestions for changes.
This document was generated by
Siteweaver on Tue Dec 9 13:59:49 2003.
The source to the document was last modified on Mon Sep 1 13:30:51 2003.
This document may be found at http://www.cs.grinnell.edu/~rebelsky/Courses/CS151/2003F/Outlines/outline.32.html.
You may wish to
validate this document's HTML
;
;
Check with Bobby