Disc 3 - Loops and header files

Disc 3 - Loops and header files - } do { cout...

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

View Full Document Right Arrow Icon
Adam Avery 2/2/2010
Background image of page 1

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

View Full DocumentRight Arrow Icon
Reviewing exam Intro to while and do-while loops Header files and Project 3
Background image of page 2
Take out a sheet of paper and answer the following: Did you feel adequately prepared for the exam? Did you attend the review session? If so, were my or Cody’s explanations more helpful? Name three things you felt were tested but not taught/emphasized enough in class. Name three things you felt you rocked at during the exam.
Background image of page 3

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

View Full DocumentRight Arrow Icon
English translation: it <expression> is true, do the //work, then re-check <expression> and repeat. while ( <expression> ) { // work }
Background image of page 4
int count = 0; while( count < 5) { cout << “count is “ << count << endl; count--;
Background image of page 5

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

View Full DocumentRight Arrow Icon
Background image of page 6
Background image of page 7

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

View Full DocumentRight Arrow Icon
Background image of page 8
Background image of page 9
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: } do { cout &lt;&lt; count is &lt;&lt; count &lt;&lt; endl; count++; } while (count &lt; 5); NOTICE THE SEMICOLON int level = 14; while(level++ &lt; 18) { cout &lt;&lt; Welcome to level &lt;&lt; level &lt;&lt; endl; } How many times does this execute? Used to hide function implementation from programmer calling functions .cpp files that implement functions and .cpp files that call functions need to #include &lt;headerFile.h&gt; Compiler will produce link errors if theres a problem dealing with your header file or #include statements Start up Visual Studio to get started/continue working on Project 3 Feel free to ask me any questions about it...
View Full Document

This note was uploaded on 02/27/2011 for the course EECS 183 taught by Professor Dorf during the Winter '08 term at University of Michigan.

Page1 / 9

Disc 3 - Loops and header files - } do { cout...

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

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