/* 
 * CS331 A1 Fall 2004
 * Homework 11/22/2004
 * By Gene Laisne
 *
 * Assignement:  generate a file with a template function, like swap,
 * compile it write down the size of the exe. Call swap with several
 * different data types and record the size of each type
 *
 */

#include <iostream>

using namespace std;

//template <class T>
void swap(T *, T *);

void main()
{
	int a = 100.1;
	int b = 1.1;

	cout << "a = " << a << endl;
	cout << "b = " << b << endl;

	cout << endl;
	cout << "Run Swap" << endl;
	cout << endl;

	swap(&a, &b);

	cout << "a = " << a << endl;
	cout << "b = " << b << endl;

	int x;
	cin >> x;

}

//template <class T>
void swap(T *x, T *y)
{

	T temp = *x;
	*x = *y;
	*y = temp;
    
}
/*
 * Data Type		File Size
 *---------------------------------
 * int				284 KB
 * float			284 KB
 * double			284 KB
 * long				284 KB
 *
 * This would make since considering that the same could we 
 * be simply created over and over, but when I make this a 
 * straight-up int program it is still 284 KB!
 *
 */

