Permalink
Switch branches/tags
Nothing to show
Find file
115d615 Sep 28, 2012
43 lines (32 sloc) 605 Bytes
//
// This is main.
//
// Zo Obradovic
//
#include "Matrix.h"
//
// der main
//
int main (int argc, const char * argv[])
{
Matrix fred;
// just in case
try
{
// reads the input from stdin
fred.read();
// prints the matrix. Only useful for debugging
fred.printMatrix();
// does most of the work here
fred.findHamiltonianPath();
// print the results
fred.printResults();
}
// woops
catch ( ... )
{
return 1;
}
// happy happy path
return 0;
}