lect12 Pass by Reference

lect12 Pass by Reference - Today's Challenge Five hundred...

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

View Full Document Right Arrow Icon
Today’s Challenge Five hundred begins it, five hundred ends it Five in the middle is seen, First of all figures, first of all letters, Take up the stations between. Join all together, and then you will bring, Before you the name of an eminent king.
Background image of page 1

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

View Full DocumentRight Arrow Icon
Today’s Challenge The Romans Wrote : Five hundred begins it, five hundred ends it Five in the middle is seen, First of all figures, first of all letters, Take up the stations between. Join all together, and then you will bring, Before you the name of an eminent king.
Background image of page 2
Exam 2 Exam 2 Lecture Portion Grade Posted on blackboard
Background image of page 3

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

View Full DocumentRight Arrow Icon
Pass by Reference Pass by Reference Means Passing a Location of a Variable into a Function Modifying Variable in Function Will Modify Value in Original Variable In C++, Function Asks for Pass by Reference by using the before Parameter Name E.g. int func(int &num)
Background image of page 4
Function Pass by Reference #include <iostream> using namespace std; void func(int &num); main() { int originalNum = 10; func(originalNum); cout << originalNum; } { num = 0;
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 / 12

lect12 Pass by Reference - Today's Challenge Five hundred...

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