Why is a C++ Vector called a Vector?

后端 未结 16 2408
情话喂你
情话喂你 2020-12-04 07:42

The question\'s pretty self-explanatory really. I know vaguely about vectors in maths, but I don\'t really see the link to C++ vectors.

16条回答
  •  北荒
    北荒 (楼主)
    2020-12-04 08:12

    Mathematical definition of a vector is a member of the set Sn, which is an ordered sequence of values in a specific set (S). This is what a C++ vector stores.

提交回复
热议问题