lect11 Arrays

lect11 Arrays - Exam 2 EXAM 2 in LECTURE AND LAB NEXT WEEK!...

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

View Full Document Right Arrow Icon
Exam 2 EXAM 2 in LECTURE AND LAB NEXT WEEK!!!
Background image of page 1

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

View Full DocumentRight Arrow Icon
Exam 2 Exam 2 Next Week 33% of Exam in Lab Must Complete a Program in 50 Minute Lab Time 67% of Exam in Lecture 50 Minutes (last 50 Tuesday evening, or 50 on Wednesday) Know Your Programming Study Quiz 1 and 2, Exam 1 Know Everything through Today Files!! Functions!! Loops!! Array Declaration, Assignment
Background image of page 2
Function Review Normally Parameters Are Pass by Value A Copy of the Value Is Passed into Function If Copy Is Modified in Function, Original Variable Is Unchanged Exception: Passing an Array into a Function
Background image of page 3

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

View Full DocumentRight Arrow Icon
Function Pass by Value #include <iostream> using namespace std; bool even(int num); main() { int originalNum = 10; bool retVal; retVal = even(originalNum); cout << originalNum; } bool even(int numPassed) { bool valToRet; if (numPassed % 2 == 0) valToRet = true; else valToRet = false; numPassed = 0; return (valToRet); }
Background image of page 4
Display Line Function Write a function that displays a character
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.

This document was uploaded on 03/03/2010.

Page1 / 13

lect11 Arrays - Exam 2 EXAM 2 in LECTURE AND LAB NEXT WEEK!...

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