Subject: CGAL users discussion list
List archive
- From: "Xiaofan Li" <>
- To: <>
- Subject: RE: [cgal-discuss] Strange problem
- Date: Fri, 25 Jul 2008 10:20:29 +0100
As far as I remembered (might be inaccurate), new[] does not initialise all
but the first element of the object array. It just allocates the necessary
memory space. Try std::vector or std::list instead.
------------------------------------------------
Xiaofan Li
Biomolecular Modeling Laboratory
Cancer Research UK, London Research Institute
<mailto:>
Department of Biochemistry and Molecular Biology
University College London
<mailto:>
------------------------------------------------
________________________________
From: Morteza Romoozi
[mailto:]
Sent: Fri 7/25/2008 07:11
To:
Subject: [cgal-discuss] Strange problem
Hi
i run below code in visual c.net,but when i try to run exe file of it,face to
error and cant run it.
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
typedef CGAL::Cartesian
<http://www.cgal.org/Manual/3.3.1/doc_html/cgal_manual/Kernel_23_ref/Class_Cartesian.html#Cross_link_anchor_1>
<double
<http://www.cgal.org/Manual/3.3.1/doc_html/cgal_manual/NumberTypeSupport_ref/Class_double.html#Cross_link_anchor_582>
> K; typedef K::Point_2
<http://www.cgal.org/Manual/3.3.1/doc_html/cgal_manual/Kernel_23_ref/Class_Point_2.html#Cross_link_anchor_24>
Point;
typedef CGAL::Polygon_2
<http://www.cgal.org/Manual/3.3.1/doc_html/cgal_manual/Polygon_ref/Class_Polygon_2.html#Cross_link_anchor_668>
<K> Polygon_2
<http://www.cgal.org/Manual/3.3.1/doc_html/cgal_manual/Polygon_ref/Class_Polygon_2.html#Cross_link_anchor_668>
;
using std::cout; using std::endl;
int
<http://www.cgal.org/Manual/3.3.1/doc_html/cgal_manual/NumberTypeSupport_ref/Class_int.html#Cross_link_anchor_577>
main()
{
Point *points;
points=new Point[pl];
for(j=0;j<pl;j++){
points[j]=Point(2,4);}
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Plz Help me
<<winmail.dat>>
- [cgal-discuss] Strange problem, Morteza Romoozi, 07/25/2008
- RE: [cgal-discuss] Strange problem, Xiaofan Li, 07/25/2008
- RE: [cgal-discuss] Strange problem, Ben Galehouse, 07/25/2008
- <Possible follow-up(s)>
- Re: [cgal-discuss] Strange problem, Mahmood Naderan, 07/25/2008
- Re: [cgal-discuss] Strange problem, Morteza Romoozi, 07/25/2008
- RE: [cgal-discuss] Strange problem, Xiaofan Li, 07/25/2008
Archive powered by MHonArc 2.6.16.