Lecture 04 - Printing

Lecture 04 - Printing - Announc e m e nts P r int in g And...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Printing And Variables Sept. 21, 2006 Announcements • Assignment 1 on web-page. • FAQ • Instructor Advising 11:00am - 12:00 noon on Friday, Reynolds 106 • Other hours appearing on Help link. Clicker Quiz Rules 1. No talking (cheering, booing, taunting, etc.) during the quiz. No Questions. 2. Keep your eyes on your own clicker (or the question screen). 3. If you are unable to get your clicker to connect bring it to the front of the class room, show the instructor and then write your name on the list (come early to class next time so we can figure out why it didn’t work). Last time • Saw how to construct a simple program that does nothing. • Leant about including stdio.h. • Saw how to use the printf statement. More printf • printf does more than just print it also substitutes and formats (hence the “f”) Formatting • There are some special formatting characters that printf understands: • \n - new line • \t - tab • \a – alarm bell • \” – quotes • \\ – an actual slash • Remember #include <stdio.h> • Lets do some examples…
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Substituting • to substitute you have to tell printf: – where, and
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 5

Lecture 04 - Printing - Announc e m e nts P r int in g And...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online