template_main.cpp

Go to the documentation of this file.
00001 /**
00002 \file     template_main.cpp
00003 \brief    An empty program using the Zenautics Matrix Class.
00004 \author   Glenn D. MacGougan (GDM)
00005 \date     2008-04-18
00006 
00007 \b License \b Information \n
00008 Copyright (c) 2008, Glenn D. MacGougan, Zenautics Technologies Inc. \n
00009 This file may be used, copied, modified and redistributed without restriction.
00010 */
00011 
00012 #include <iostream>
00013 #include <string>
00014 #include <complex>
00015 #include "Matrix.h"
00016 
00017 using namespace Zenautics;
00018 using namespace std;
00019  
00020 int main( int argc, char* argv[] )                            
00021 {  
00022   try
00023   {
00024     // e.g.
00025     Matrix X = "[1 2 3 4 5 6 7 8 9 10"];
00026     Matrix Y = X^2;
00027 
00028     // ... add your code here
00029   }                                                           
00030   catch( MatrixException& matrix_exception )
00031   {
00032     cout << matrix_exception << endl;
00033   }
00034   catch ( ... )
00035   {
00036     cout << "Caught unknown exception" << endl;
00037   }
00038 
00039   char anykey;
00040   cout << "Program complete.\n" << endl;
00041   cout << "Type something and hit enter: " << endl;
00042   cin >> anykey;
00043   return 0;
00044 }                                   
00045 

Generated on Sun Feb 8 15:31:10 2009 for The Zenautics Matrix Project by  doxygen 1.5.4