Lecture 5: Overview of C
Thursday, September 15, 2011 Status: complete[Up] [Previous Lecture] [Next Lecture]
Powerpoint Slides: none
Reading Assigned: 2.1-2.2
Homework Due:
Homework Assigned:
Topics Covered:
- Programming tips:
- C program files must end with .c. Otherwise, gcc simply ignores the file and passes it along to the loader. Then, you get a "bad format" error from the loader.
- If you use nano -c to invoke the nano text editor, you get a status line that reports the location of the cursor. You can use this information to find the line that has a syntax error as reported by gcc.
- If you open two windows on your computer, you can use one for the text editor and one to compile the program. Then you won't have to keep quitting the text editor and going back in. Just make sure that you save your changes to the C program before you compile.
- Students worked on Classwork 4
- Time permitting, students worked on Homework 2 and Classwork 5 (optional).