From a38d5799d66045854acf8dcc9ae1118f37bea80e Mon Sep 17 00:00:00 2001 From: Sylvain Pion Date: Wed, 7 Jul 1999 12:52:49 +0000 Subject: [PATCH] - Example of how to use cl_I. --- Old_Packages/CLN/examples/CLN/example_cl_I.C | 23 ++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Old_Packages/CLN/examples/CLN/example_cl_I.C diff --git a/Old_Packages/CLN/examples/CLN/example_cl_I.C b/Old_Packages/CLN/examples/CLN/example_cl_I.C new file mode 100644 index 00000000000..0b406a94d03 --- /dev/null +++ b/Old_Packages/CLN/examples/CLN/example_cl_I.C @@ -0,0 +1,23 @@ + +#ifndef CGAL_USE_CLN +# error You need to have CLN installed in order to run this example +#endif + +#include +#include + +#include + +#include +#include + +int +main () +{ + cl_I b = "31"; + cl_I p = b * 75; + bool ok = (p==2325) && (CGAL::compare(p,cl_I(31*75))==CGAL::EQUAL); + std::cout << (ok ? "ok" : "ERROR") << std::endl; + std::cout << p << " == " << 31*75 << endl; + return (ok) ? 0 : -1; +}