Borland c vector
![borland c++ vector borland c++ vector](http://www.cplusplus.com/articles/y7Mf92yv/secondpreview.jpg)
#Borland c++ vector free
You can still access an object using mat, but you don't have to worry about freeing anything as it will free itself automatically when it goes out of scope. Use the new operator instead: AnsiString **mat = mat = new AnsiString* įor( i = 0 i < f1 ++i ) mat.resize( c1 ) The line above is just pleading for a memory error.
![borland c++ vector borland c++ vector](https://s3.manualzz.com/store/data/028600915_1-994d2d2c07b6a0fb1bb98f752507f71d.png)
The constructor of the object won't be called (you would have to call it manually afterwards using the placement new operator).
![borland c++ vector borland c++ vector](https://people.duke.edu/~ng46/borland/rafael-3.jpg)
Create a vector of 5 int numbers vector A1(5) Accessing the vector using the indexer // 1.1.