C Tutorial I - PowerPoint PPT Presentation

1 / 5
About This Presentation
Title:

C Tutorial I

Description:

C Tutorial (I) Kernighan & Ritchie, Chapter 1, Sections 1.1-1.5. Section 1.1. To create programs, use the text editor subEthaEdit, which should be available ... – PowerPoint PPT presentation

Number of Views:26
Avg rating:3.0/5.0
Slides: 6
Provided by: randyz
Category:
Tags: tutorial

less

Transcript and Presenter's Notes

Title: C Tutorial I


1
C Tutorial (I)
  • Kernighan Ritchie,
  • Chapter 1,
  • Sections 1.1-1.5

2
Section 1.1
  • To create programs, use the text editor
    subEthaEdit, which should be available in the
    Applications folder of your classroom machine.If
    this application does not already appear in your
    Dock, it is suggested that you insert it (just
    drag the application to the Dock).
  • To compile your code, use cc just as shown by the
    authors.
  • Create and run the venerable Hello World example.
    (If youve ever wondered where every programming
    book in the world got the Hello Word example
    from, look no further!)

3
Sect 1.2
  • Create, compile and run the temperature converter
    examples.
  • Be sure you understand the concepts
  • Variable type
  • Assignment statement
  • How arithmetic results vary depending on variable
    type
  • How loops work
  • printf
  • Its role as a standard library function
  • How formatting strings work
  • Special (escaped) characters

4
Sect. 1.3
  • Understand the additional details about the for
    statement highlighted in the example.

Sect. 1.4
  • Understand how to define and use symbolic
    constants.

5
Section 1.5.1
  • Understand the concept of character stream.
  • Compile and test the file-copying example.
    Understand how getchar() and putchar() are used.
  • Understand how EOF works.
  • Learn how file redirection is implemented in UNIX
    (gt,lt), and to use this to accomplish file copying
    with the sample code in 1.5.1 (this will be
    discussed in class).
Write a Comment
User Comments (0)
About PowerShow.com