// FILE: ExchngDr.cpp // DRIVER FOR FUNCTION "exchange" #include #include "Exchange.cpp" // Functions Used... // Exchanges two type double values void exchange (double& a1, double& a2); // driver (not included in the text) int main () { // Local Data.. double a1; double a2; // Read in the two doubles to be exchanged cout << "Enter a double value for a1 > "; cin >> a1; cout << "Enter a double value for a2 > "; cin >> a2; // Exchange the doubles exchange(a1, a2); // Print the results cout << "After the exchange a1 = " << a1 << " and a2 = " << a2 << endl; return 0; }