Please send questions to
st10@humboldt.edu .
/*-----
Contract: main: void -> int
Purpose: testing program for the function swap
Examples: When run, this program should print the following
to the screen:
testing swap: true's should mean passed:
---------------------------------------
(quant1 == 27): true
(quant2 == 15): true
by: Sharon Tuttle
last modified: 04-27-10
-----*/
#include <iostream>
#include <cmath>
#include "swap.h"
using namespace std;
int main()
{
int quant1 = 15;
int quant2 = 27;
swap(quant1, quant2);
cout << boolalpha;
cout << endl;
cout << "testing swap: true's should mean passed: " << endl;
cout << "---------------------------------------" << endl;
cout << "(quant1 == 27): " << (quant1 == 27) << endl;
cout << "(quant2 == 15): " << (quant2 == 15) << endl;
cout << endl;
return EXIT_SUCCESS;
}