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 5376 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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!