lec02

lec02 - Hello World CS 2022: Introduction to C Instructor:...

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

View Full Document Right Arrow Icon
Hello World CS 2022: Introduction to C Instructor: Hussam Abu-Libdeh (based on slides by Saikat Guha) Fall 2009, Lecture 2 Hello World CS 2022, Fall 2009, Lecture 2
Background image of page 1

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

View Full DocumentRight Arrow Icon
Administrivia I Website will be up shortly I Decide on office hours Hello World CS 2022, Fall 2009, Lecture 2
Background image of page 2
Environment I OS: GNU/Linux I Editor: vim I Compiler: gcc I Debugger: gdb Hello World CS 2022, Fall 2009, Lecture 2
Background image of page 3

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

View Full DocumentRight Arrow Icon
Intro to VIM I $ vim hello.c I i – Enter editing mode I <esc> – Enter normal mode Normal Mode Commands I :w W rite/Save I :q Q uit You’ll hate vim for the first month. Then you’ll realize you can’t live without it. Hello World CS 2022, Fall 2009, Lecture 2
Background image of page 4
Intro to VIM More Normal Mode Commands I A a ppend to line (enters editing mode) I yy Y ank (copy) line I p p aste I o o pen new line I u u ndo I :redo redo VIM cheatsheet: http://tinyurl.com/dd7x4 Hello World CS 2022, Fall 2009, Lecture 2
Background image of page 5

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

View Full DocumentRight Arrow Icon
Structure of a C Program Overall Program <some pre-processor directives> <global declarations> <global variables> <functions> Hello World CS 2022, Fall 2009, Lecture 2
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 16

lec02 - Hello World CS 2022: Introduction to C Instructor:...

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

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