Skip to main content
gamedev.net
🔒 Locked

vector/pointer?

Started by Tree Penguin Sep 23, 2005 at 8:06 PM 1 replies 400+ views
Original Post
Tree Penguin
Tree Penguin
Hi, is there a difference between a vector and a pointer or is it really the same thing? Thanks.
SiCrane
SiCrane
Assuming you're talking about C++, a vector and a pointer are two very differnt things. A std::vector object contains a dynamic array of objects. A pointer is a low level construct that contains a (possibly invalid) memory address of an object.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.