Click here to Skip to main content
15,903,175 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralBit operation Pin
Anonymous9-Jul-03 6:08
Anonymous9-Jul-03 6:08 
GeneralRe: Bit operation Pin
John M. Drescher9-Jul-03 6:18
John M. Drescher9-Jul-03 6:18 
GeneralRe: Bit operation Pin
David Chamberlain9-Jul-03 7:07
David Chamberlain9-Jul-03 7:07 
GeneralUpdating toolbar buttons or menu Pin
Rno359-Jul-03 6:07
Rno359-Jul-03 6:07 
GeneralRe: Updating toolbar buttons or menu Pin
John R. Shaw9-Jul-03 8:29
John R. Shaw9-Jul-03 8:29 
GeneralRe: Updating toolbar buttons or menu Pin
Rno359-Jul-03 10:40
Rno359-Jul-03 10:40 
GeneralRe: Updating toolbar buttons or menu Pin
John R. Shaw9-Jul-03 12:39
John R. Shaw9-Jul-03 12:39 
QuestionBraces required? Pin
Jamie Hale9-Jul-03 5:27
Jamie Hale9-Jul-03 5:27 
I have the following code:

1.  for(int i = 0; i < 20; ++i)
2.    if(!m_aSoftwareGains[i].Load(pFile))
3.      return false;
4.  m_bSoftwareGainsLoaded = true;


I didn't put in the seemingly extraneous braces.

Rather than running the following lines:

1,2,1,2,1,2,1,2...1,2,4

it runs:

1,2,4

Can anyone explain to me why this is?

J

"I am the Lorax. I speak for the trees."

AnswerRe: Braces required? Pin
valikac9-Jul-03 5:38
valikac9-Jul-03 5:38 
GeneralRe: Braces required? Pin
Rage9-Jul-03 5:43
professionalRage9-Jul-03 5:43 
GeneralRe: Braces required? Pin
Jamie Hale9-Jul-03 5:48
Jamie Hale9-Jul-03 5:48 
GeneralRe: Braces required? Pin
David Crow9-Jul-03 5:51
David Crow9-Jul-03 5:51 
GeneralRe: Braces required? Pin
Jamie Hale9-Jul-03 5:52
Jamie Hale9-Jul-03 5:52 
GeneralRe: Braces required? Pin
Jamie Hale9-Jul-03 5:55
Jamie Hale9-Jul-03 5:55 
GeneralRe: Braces required? Pin
Keith D9-Jul-03 6:03
Keith D9-Jul-03 6:03 
GeneralRe: Braces required? Pin
Jamie Hale9-Jul-03 6:18
Jamie Hale9-Jul-03 6:18 
GeneralRe: Braces required? Pin
John M. Drescher9-Jul-03 6:11
John M. Drescher9-Jul-03 6:11 
GeneralRe: Braces required? Pin
Jamie Hale9-Jul-03 6:24
Jamie Hale9-Jul-03 6:24 
GeneralRe: Braces required? Pin
Jim A. Johnson9-Jul-03 7:15
Jim A. Johnson9-Jul-03 7:15 
GeneralRe: Braces required? Pin
Atlantys9-Jul-03 13:24
Atlantys9-Jul-03 13:24 
AnswerRe: Braces required? Pin
John R. Shaw9-Jul-03 8:38
John R. Shaw9-Jul-03 8:38 
GeneralRe: Braces required? Pin
Jamie Hale9-Jul-03 10:14
Jamie Hale9-Jul-03 10:14 
AnswerRe: Braces required? Pin
Haakon S.9-Jul-03 9:53
Haakon S.9-Jul-03 9:53 
GeneralRe: Braces required? Pin
Jamie Hale9-Jul-03 10:13
Jamie Hale9-Jul-03 10:13 
GeneralRe: Braces required? Pin
Haakon S.9-Jul-03 11:18
Haakon S.9-Jul-03 11:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.