Electrical and Computer Engineering
8 of 30
UAH
CPE 112
Activity Program (Continued)
•
•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;
•}
•