programStructure

programStructure - CS1372 CS1372: HELPING TO PUT THE...

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

View Full Document Right Arrow Icon
CS1372: HELPING TO PUT THE COMPUTING IN ECE CS1372 Program Structure
Background image of page 1

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

View Full DocumentRight Arrow Icon
CS1372: HELPING TO PUT THE COMPUTING IN ECE But first. ..Things heard on the street "When are we going to stop talking about the GameBoy and get to the C?" "Students do not understand the difference between #defines and variable declarations "T-Square crashed Friday night!" "I'm really confused!"
Background image of page 2
CS1372: HELPING TO PUT THE COMPUTING IN ECE In the beginning. .. main.c //typedefs //#defines //#includes <stdlib.h> //declarations int main() { } int foo(. ..) { }
Background image of page 3

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

View Full DocumentRight Arrow Icon
CS1372: HELPING TO PUT THE COMPUTING IN ECE In the beginning. .. main.c //typedefs //#defines //#includes <stdlib.h> //declarations //prototypes void setPixel(. ..); int main() { } int foo(. ..) { setPixel(. ..); } mylib.c //typedefs //#defines //#includes <stdlib.h> //declarations void setPixel(. ..) { }
Background image of page 4
CS1372: HELPING TO PUT THE COMPUTING IN ECE Global Variables main.c //typedefs //#defines //#includes <stdlib.h> //declarations int g; //prototypes void setPixel(. ..); int main() { } int foo(. ..) { setPixel(. ..); } mylib.c //typedefs //#defines //#includes <stdlib.h> //declarations int g; void setPixel(. ..) { } This works but is bad style
Background image of page 5

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

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 14

programStructure - CS1372 CS1372: HELPING TO PUT THE...

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

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