//**************************************************************
//
// CS 240B : Winter 2003 Ohio University Travis Dillon
// Project 4.2 : template dynamic matrix class
// file : prog4b.cc
// started : 02-24-03
//
//**************************************************************
#include "prog4b.h"
#include "dynmat.tmpl"
int main()
{
cout << "\n\nProg4b\n\n" << endl;
ofstream fout;
fout.open("output.txt");
Dynmat <int> b ("4X4int");
b.fill_const(44);
b.write(fout);
Dynmat <int> c("zzz");
c.fill_id();
c.write(fout);
Dynmat <int> d(2,3,"zz");
d.fill_1();
d.write(fout);
Dynmat <double> e(4,5);
e.fill_2();
e.write(fout);
Dynmat <int> f,g,h,i,j,k,l;
f.fill_1();
g.fill_2();
h = g + c + c + c;
i = h * g;
j = g * h;
k = 7 * c;
l = k * g;
f.write(fout);
g.write(fout);
h.write(fout);
i.write(fout);
j.write(fout);
k.write(fout);
l.write(fout);
fout.close();
return EXIT_SUCCESS;
}