Archived

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

Drakon

Problem with getting a vector's size

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