|
-
January 27th, 2010, 01:08 AM
#1
Accessing vectors
Given something like
std::vector<object*> objectarray;
where object is a type of class with int valuea
how would you access the valuea from the object pointed to by the third pointer in objectarray?
Would you pass objectarray like this?
func(objectarray);
just like any other vector?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|