 |
 |
 |
 |
 |
 |
 |
void GetTemp( int& temp )
// Reference
parameter
|
|
// This function prompts for a temperature to be
|
|
|
// entered, reads the input value into temp and
|
|
|
// echo-prints it
|
|
|
{
|
|
|
cout << "Enter the outside
temperature:" << endl;
|
|
|
cin >> temp;
|
|
|
cout << "The current
temperature is " << temp
|
|
|
<< endl;
|
|
|
}
|
|