Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

vectors in pascal.......

muaz_farooqmuaz_farooq Member Posts: 4

hi everybody, i want a little info about vectors :

1. How to create a vector in pascal?
2. How to access it's elements?
3. Is vector a dynamic structure in pascal like it is in Java, i mean is it's length automatically increase like it is increased in java?
4. Does vectors also has types like arrays do? like array of char, array of integer, array of byte etc.

Comments

  • zibadianzibadian Member Posts: 6,349
    :
    : hi everybody, i want a little info about vectors :
    :
    : 1. How to create a vector in pascal?
    : 2. How to access it's elements?
    : 3. Is vector a dynamic structure in pascal like it is in Java, i mean is it's length automatically increase like it is increased in java?
    : 4. Does vectors also has types like arrays do? like array of char, array of integer, array of byte etc.
    :
    The concept of a vector type is unknown in Pascal. You can however simulate vectors by creating array types for them. All the mathematical routines must be coded manually, although there are various good libraries on the internet. As arrays, vectors are not dynamic, element referencing is done using the normal array coding.
Sign In or Register to comment.