Please send questions to st10@humboldt.edu .
/*--------------------------------------------------
created by smtuttle at Mon Apr 26 14:29:10 PDT 2010
--------------------------------------------------*/
#include <iostream>
#include <cmath>
using namespace std;


/*--------------------------------------------------
 Contract: swap : int& int& -> void
 Purpose: expects two integer arguments, and returns nothing,
         but has the side effect that when it is done,
         the first argument has the original value of the second
         argument, and the second argument has the original value of the
         first argument;

 Examples: 
         int quant1 = 15;
         int quant2 = 27;
         swap(quant1, quant2);

         ...then, after this call:
         quant1 == 27
         quant2 == 15
--------------------------------------------------*/

void swap(int& value1, int& value2)
{
    int temp;

    temp = value1;

    value1 = value2;
    value2 = temp;
}