Please send questions to
st10@humboldt.edu .
/*-----
Contract: main: void -> int
Purpose: testing program for the function swap
Examples: when the user runs the program test_swap, the
following will be written to the screen:
BEFORE:
mine: 6
yours: 27
AFTER:
mine: 27
yours: 6
by: Sharon M. Tuttle
last modified: 4-30-07
-----*/
#include <iostream>
#include "swap.h"
using namespace std;
int main()
{
int mine = 6;
int yours = 27;
cout << "BEFORE: " << endl;
cout << "mine: " << mine << endl;
cout << "yours: " << yours << endl;
swap(mine, yours);
cout << endl;
cout << "AFTER: " << endl;
cout << "mine: " << mine << endl;
cout << "yours: " << yours << endl;
return EXIT_SUCCESS;
}