G
glen stark
Surely there is something clever to do here, besides turning off the
warning?
Glen
warning?
Glen
glen said:Surely there is something clever to do here, besides turning off the
warning?
Surely there is something clever to do here, besides turning off the
warning?
Yes. Instead of writing this:
vector<something> v;
// fill the vector here...
for (int i=0; i<v.size(); ++i) /* ... */
write this:
for (size_t i=0; i<v.size(); ++i) /* ... */
Even better, use iterators.
Bob Hairgrove
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.