Skip to Content.
Sympa Menu

cgal-discuss - Beginner-level question

Subject: CGAL users discussion list

List archive

Beginner-level question


Chronological Thread 
  • From:
  • To:
  • Subject: Beginner-level question
  • Date: Thu, 20 Dec 2007 21:36:51 +0100

Hi all,

I am a novice at both C++ and CGAL. I am trying to get this example from CGAL
library to produce some output:


#include <CGAL/Cartesian.h>
#include <CGAL/ch_graham_andrew.h>

typedef CGAL::Point_2<CGAL::Cartesian<double> > Point_2;

int main()
{
CGAL::set_ascii_mode(std::cin);
CGAL::set_ascii_mode(std::cout);
std::istream_iterator< Point_2 > in_start( std::cin );
std::istream_iterator< Point_2 > in_end;
std::ostream_iterator< Point_2 > out( std::cout, "\n" );
CGAL::ch_graham_andrew( in_start, in_end, out );
return 0;
}

I am compiling this code on windows and it compiles fine,but I don't know
what to type in at the command prompt to make it produce some output?

Many thanks



Archive powered by MHonArc 2.6.16.

Top of Page