F
F
freecam2020-11-22 18:39:13
Pascal
freecam, 2020-11-22 18:39:13

std::vector Pascal?

What is the analogue of std::vector in Pascal.
How would such a string look like in Pascal:
vector [Name] NameName; ?
[] because here <> for some reason it is impossible to insert

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
HemulGM, 2020-11-22
@HemulGM

array of Name
array[10] of Name
In modern Delphi:
TArray<Name>

M
miksmiks, 2020-11-23
@miksmiks

In PascalABC.NET, this is List < integer > :
var a := new List < integer > ;
a.Add(2);
a.Add(3);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question