02/21/00
COM1100 Winter2000 Yuhong Yin
6
Function swap()
n
// swap the values of two integer variable
n
void swap(int& x, int& y) {
n
int temp;
n
temp = x;
n
x = y;
n
y = temp;
n
}
n