Archived

This topic is now archived and is closed to further replies.

ScottC

Vectors

Recommended Posts

Same as an array that has no set amount of whatever type it is? Allows infinite amounts under that array?

Share this post


Link to post
Share on other sites
Thanks, I was wondering.

Do they use arrays in games like halflife for size of world and like vectors for seemless world type games?

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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 ]

Share this post


Link to post
Share on other sites