oups...forgot to ignore HTML tags for (int i; i
Q
Queeny
@Queeny
Posts
-
'LONG' to 'int' [modified] -
'LONG' to 'int' [modified]I have a LONG variable, x, and I need to use the value as an int for my "for" loop. for (int i; imodified on Monday, June 2, 2008 8:47 PM
-
Using Braces in C++ [modified]Is there a reason for using braces if they are not part of a condition or loop? For example: cameraCollection->Item(0, &camera); { //extra code... } In this example, will it make a difference if I take out the braces? if it does, why? Also, I have a sample code with no braces in the for loops? I thought braces were required, but the code compiles and does what it is supposed to do. Example: for(int y=0; y<288; y++) for(int x=0; x<353; x++) brightnessSum+=frameBuffer[x+353*y]; modified on Monday, June 2, 2008 9:08 AM