Vectors

Started by
3 comments, last by ScottC 20 years, 6 months ago
Same as an array that has no set amount of whatever type it is? Allows infinite amounts under that array?
Advertisement
Vector == Array.
Also, in geometry, vector means "a direction or a point in space".

-Nik

EDIT: I found a better definition.

[edited by - Nik02 on October 16, 2003 9:36:34 AM]

Niko Suni

Thanks, I was wondering.

Do they use arrays in games like halflife for size of world and like vectors for seemless world type games?
You must mean STL vector template by "vector".
It is a helper, encapsulating an array of any type of variables.
I don''t know whether they used it or raw arrays, you can achieve same things with both. Vector is more flexible, though.

-Nik

Niko Suni

You cannot have vectors of infinite size : you are still bounded by how much RAM your system has and can handle.

[ Start Here ! | How To Ask Smart Questions | Recommended C++ Books | C++ FAQ Lite | Function Ptrs | CppTips Archive ]
[ Header Files | File Format Docs | LNK2001 | C++ STL Doc | STLPort | Free C++ IDE | Boost C++ Lib | MSVC6 Lib Fixes ]
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan

This topic is closed to new replies.

Advertisement