On Fri, 31 Jul 1998, Novak Elliott wrote:
> typedef struct
> {
> double x;
> double y;
> } POINT;
>
> struct
> {
> int ID;
> int numPoints;
> POINT *pasPoints;
> } MYOBJECT;
>
Change structures to:
typedef struct point
{
double x,y;
struct point *next;
} POINT;
typedef struct
{
int ID;
int npts;
POINT *first;
POINT *last;
}MYOBJECT;
and allocate point structures just as you read info for one in and link
them into list. This way you will have to read file just for one time.
Hope this helps.
Karlis
- best (fastest) way to parse text files ? Novak Elliott
- Re: best (fastest) way to parse text files ? Karlis Peisenieks
- Re: best (fastest) way to parse text files ? Glynn Clements
- Re: best (fastest) way to parse text files ? James
- Shared Library Construction and Use. R. Brock Lynn
- Monolithic vs Micro-kernel arch. K.HARI.KRISHNAN
- Re: Shared Library Construction and Use. Christoph Bugel
- Re: Shared Library Construction and Use... Glynn Clements
- Re: Shared Library Construction and Use. Novak Elliott
