Passing by Value, Passing by Reference

Create a program with a class called ValRef that includes at least the two functions tripleByValue and tripleByReference.

The functions will use passing by value and passing by reference respectively to triple the value of its parameter. Let the data type involved be of type integer.

Create three files, a class header file, a class implementation file, and an application file that allows the user to input a value to be tripled.

courses/cs203-201201/assignments/lab4.txt · Last modified: 2012/02/17 15:08 by jones
VCCS Top Events Extended Site Search Login Vassar Science Web Vassar Home Driven by DokuWiki Valid XHTML 1.0