Jump to content
  • Advertisement

Archived

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

Drakon

Problem with getting a vector's size

This topic is 5294 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
Advertisement
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!