Commit c01632ee authored by Davis King's avatar Davis King

Added a try/catch block around the code in main().

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403299
parent 6b3548b2
...@@ -111,6 +111,8 @@ private: ...@@ -111,6 +111,8 @@ private:
int main() int main()
{ {
try
{
// make a column vector of length 2 // make a column vector of length 2
column_vector starting_point; column_vector starting_point;
starting_point.set_size(2); starting_point.set_size(2);
...@@ -225,5 +227,10 @@ int main() ...@@ -225,5 +227,10 @@ int main()
); );
cout << starting_point << endl; cout << starting_point << endl;
}
catch (std::exception& e)
{
cout << e.what() << endl;
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment