| View previous topic :: View next topic |
| Author |
Message |
Tavi Guest
|
Posted: Wed Oct 26, 2005 10:52 pm Post subject: Replace the old TArray |
|
|
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
|
Posted: Wed Oct 26, 2005 11:04 pm Post subject: Re: Replace the old TArray |
|
|
"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 |
|
 |
|