Archived

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

Problem with getting a vector's size

This topic is 5010 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have a vector that looks like this: vector bprint; And this line of code: cout << bprint.size; gives me this error: C:\VC++ Projects\ObjHandler\main.cpp(18) : warning C4761: integral size mismatch in argument; conversion supplied I have more code that uses .push_back a few times, but getting it''s size always returns a 1. Anyone know whats wrong?

Share this post


Link to post
Share on other sites
do .size();

though your problem seems like something else. Post a snippet of the actual code.

[edited by - nervo on March 27, 2004 11:05:16 PM]

Share this post


Link to post
Share on other sites