//this program demonstrates that changes to a function parameter
//have no affect on the original argument.
#include <iostream>
using namespace std;

//function prototype
void changeMe(int);

int main()
{
	int number = 12;
	
	//display the value in number.
	cout << "number is " << number << endl;
	
	//call changeMe, passing the value in number
	//as an argument.
	changeMe(number);
	
	//display the value in number again.
	cout << "Now back in main again, the value of ";
	cout << "number is " << number << endl;
	return 0;
}

//***************************************************************
// Definition of function changeMe.								*
// This function changes the value of the parameter myValue.	*
//***************************************************************

void changeMe(int myValue)
{
	//change the value of myValue to 0.
	myValue = 0;
	
	//display the value in myValue.
	cout << "Now the value is " << myValue << endl;
}
