Vectors
Same as an array that has no set amount of whatever type it is? Allows infinite amounts under that array?
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]
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]
Thanks, I was wondering.
Do they use arrays in games like halflife for size of world and like vectors for seemless world type games?
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
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
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 ]
[ 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 ]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement