Presentation is loading. Please wait.

Presentation is loading. Please wait.

CISC105 – General Computer Science Class 8 – 06/28/2006.

Similar presentations


Presentation on theme: "CISC105 – General Computer Science Class 8 – 06/28/2006."— Presentation transcript:

1 CISC105 – General Computer Science Class 8 – 06/28/2006

2 Today's Agenda Review switch statements and function calls by reference. Q&A: Lab02 Q&A: Lab03 – What is Question 4 asking? Q&A: Project 1 Return and Review the Exams

3 Switch Statements Switch statements are for jumping to values. They can take the place of numerous if…else statements Make sure you end your case statements with breaks; Do you really need a default case? Examples –switch.noBreak.cswitch.noBreak.c –switch.withBreak.cswitch.withBreak.c

4 Passing values by reference Variables declared within a function are local to that function and are not accessible outside of the function. We can create variables known as pointers that will allow us to point to values contained within a variable in another function & is the address of operator Multiple uses of * –Declare a pointer –Multiplication operator –To access the value contained in the memory location pointed to by the pointer variable Menu Example

5 Q&A: Lab02 Difficulties? Too easy, Too hard? –What –How to make better

6 Q&A Lab03 Difficulties? Too easy, Too hard? –What –How to make better Question 4 explaination.

7 Project 1 Difficulties? Questions on the project.

8 Exam 1 Review


Download ppt "CISC105 – General Computer Science Class 8 – 06/28/2006."

Similar presentations


Ads by Google