for (int i = v.size() - 1, j = 0; j < v.size(); i = j, ++j) {
foo(v[i], v[j]);
}
- Viewing Profile: Reputation: SiCrane
Community Stats
- Group Moderators
- Active Posts 20,822
- Profile Views 10,068
- Member Title Not Getting Enough Sleep
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Not Telling
User Tools
#4828866 c++ circular iteration
Posted by SiCrane
on 28 June 2011 - 05:29 PM
#4828673 C++: When to inline?
Posted by SiCrane
on 28 June 2011 - 08:22 AM
#4828396 Cross product of two vectors not perpendicular!
Posted by SiCrane
on 27 June 2011 - 02:40 PM
#4828295 I need advice on breaking a bad habit; 'if' & while reliance'...
Posted by SiCrane
on 27 June 2011 - 09:57 AM
Assuming that they aren't overloaded anyways. In C++ if you overload && or || then short circuit evaluation no longer applies. Some languages don't allow operator overloading on logical and and logical or for this reason.all the mainstream languages that offer operators like &&, || do short-circuit evaluation on them.
#4827899 timeBeginPeriod not working
Posted by SiCrane
on 26 June 2011 - 08:18 AM
#4827858 Where is my Window?
Posted by SiCrane
on 26 June 2011 - 06:15 AM
#4826765 Linked List/Entity Spawning
Posted by SiCrane
on 23 June 2011 - 07:23 AM
Edit: reponse to added text:
Bullshit. And the problem isn't removing in a loop, the problem is that your node removal code is broken.You can't remove from STL data structures while in a loop either
#4826648 C++/OpenGL/Key Input
Posted by SiCrane
on 22 June 2011 - 06:19 PM
#4826633 C++/OpenGL/Key Input
Posted by SiCrane
on 22 June 2011 - 05:34 PM
#4826553 Pointer to non-static member function?
Posted by SiCrane
on 22 June 2011 - 01:35 PM
#4826428 cos angle of tangent to circle
Posted by SiCrane
on 22 June 2011 - 08:04 AM
#4826405 cos angle of tangent to circle
Posted by SiCrane
on 22 June 2011 - 06:54 AM
#4826098 Build targets
Posted by SiCrane
on 21 June 2011 - 12:51 PM
#4826044 Why must a variable be initialized ?
Posted by SiCrane
on 21 June 2011 - 10:31 AM
IIRC, this particular confusion was the result of templates being added to the language and the desire for the expression T() to have a reliable meaning for when T is a POD type. Before that, C++ avoided the confusing term of default initialization and only had zero initialization and uninitialized values. I don't care enough to fact check this paragraph, however.
#4822634 python idle is being incredibly unhelpful
Posted by SiCrane
on 13 June 2011 - 12:33 AM
- Home
- » Viewing Profile: Reputation: SiCrane

Find content