BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Replace the old TArray

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Native API)
View previous topic :: View next topic  
Author Message
Tavi
Guest





PostPosted: Wed Oct 26, 2005 10:52 pm    Post subject: Replace the old TArray Reply with quote



Hi,

In Borland C++ I use to have the code :
#include <classlib/arrays.h>

class TgPoint

{

....

}

typedef TArray<TgPoint> TgPoints;
typedef TArrayIterator<TgPoint> TgPointsIterator;

Now I get an error to include and look like in Borland Builder C++ are not
anymore TArray and TArrayIterator. Any suggestion what I can use in place?
I need to build an array of classes and to iterate through the array.

Thanks!


Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Wed Oct 26, 2005 11:04 pm    Post subject: Re: Replace the old TArray Reply with quote




"Tavi" <tg (AT) hotmail (DOT) com> wrote


Quote:
Now I get an error to include and look like in Borland Builder
C++ are not anymore TArray and TArrayIterator. Any suggestion
what I can use in place? I need to build an array of classes and
to iterate through the array.

You can use a std::vector from the STL library:

#include <vector>

typedef std::vector<TgPoint> TgPoints;
typedef std::vector<TgPoint>::iterator TgPointsIterator;


Gambit



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Native API) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.