|
-
January 19th, 2007, 11:21 AM
#1
why is this for loop not working?
Hello all,
I have the following for loop. When size() returns a 0, the for condition should be -1 and it should not go into the for loop, correct?
for(vector<CNodeData*>::size_type i = 0; i < GetInputRVRs().size() - 1; i++)
{
for some reason when size() returns 0, the for loop is still executed. What am I doing wrong here?
Thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|