Why is a C++ Vector called a Vector?

后端 未结 16 2406
情话喂你
情话喂你 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:03

    but mathematical vectors aren't dynamic, I've never seen one change from 2D to 3D or anything else, if anything traditional arrays make for better vectors.

提交回复
热议问题