15,936,247 members
Home / Discussions / C / C++ / MFC

# C / C++ / MFC

 Re: Beginner's Question CPallini11-Sep-09 3:15 CPallini 11-Sep-09 3:15
 Re: Beginner's Question UKM_Student11-Sep-09 3:17 UKM_Student 11-Sep-09 3:17
 Re: Beginner's Question CPallini11-Sep-09 3:34 CPallini 11-Sep-09 3:34
 Re: Beginner's Question UKM_Student11-Sep-09 3:37 UKM_Student 11-Sep-09 3:37
 Re: Beginner's Question David Crow11-Sep-09 3:20 David Crow 11-Sep-09 3:20
 Re: Beginner's Question UKM_Student11-Sep-09 3:31 UKM_Student 11-Sep-09 3:31
 Re: Beginner's Question Richard MacCutchan11-Sep-09 3:25 Richard MacCutchan 11-Sep-09 3:25
 Re: Beginner's Question CPallini11-Sep-09 3:14 CPallini 11-Sep-09 3:14
 Some examples: ```int a=5; if ( a > 10 ) { a = a-10; } else { a = a + 1; } a = a + 2; ``` Since `a` is not greater than `10` then the `else` block content (namely `a = a + 1;`) is executed , and, afterwards the `a = a + 2;` statement sets the a final value to 8. ```int a=5; if ( a > 10 ) { a = a-10; } a = a + 2; ``` Since `a` is not greater than `10` and NO else block is present, the execution reaches immediately the `a = a + 2;` statement, giving `7` as `a` final value. And yes the compiler is smart enough to compile the 'missing-else-clause' `if` statement. If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile. This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke [My articles]
 Re: Beginner's Question UKM_Student11-Sep-09 3:19 UKM_Student 11-Sep-09 3:19
 Re: Beginner's Question UKM_Student11-Sep-09 3:32 UKM_Student 11-Sep-09 3:32
 Detecting identical path names Mattias G11-Sep-09 1:08 Mattias G 11-Sep-09 1:08
 Re: Detecting identical path names `Randor` 11-Sep-09 1:30 `Randor` 11-Sep-09 1:30
 Re: Detecting identical path names Mattias G11-Sep-09 1:36 Mattias G 11-Sep-09 1:36
 Re: Detecting identical path names `Randor` 11-Sep-09 1:40 `Randor` 11-Sep-09 1:40
 Re: Detecting identical path names [modified] Mattias G11-Sep-09 2:07 Mattias G 11-Sep-09 2:07
 Re: Detecting identical path names David Crow11-Sep-09 3:40 David Crow 11-Sep-09 3:40
 Re: Detecting identical path names `Randor` 13-Sep-09 0:19 `Randor` 13-Sep-09 0:19
 Re: Detecting identical path names Member 419459314-Sep-09 9:21 Member 4194593 14-Sep-09 9:21
 Re: Detecting identical path names Mattias G14-Sep-09 22:53 Mattias G 14-Sep-09 22:53
 Re: Detecting identical path names Member 419459315-Sep-09 9:31 Member 4194593 15-Sep-09 9:31
 Re: Detecting identical path names `Randor` 16-Sep-09 2:09 `Randor` 16-Sep-09 2:09
 Re: Detecting identical path names Member 419459316-Sep-09 5:48 Member 4194593 16-Sep-09 5:48
 Is There a way to set WS_EX_RTLREADING style only to some columns of ClistCtrl A&Ms11-Sep-09 0:34 A&Ms 11-Sep-09 0:34
 visual studio WINAPI directive FotisSs11-Sep-09 0:15 FotisSs 11-Sep-09 0:15
 Re: visual studio WINAPI directive CPallini11-Sep-09 0:51 CPallini 11-Sep-09 0:51
 Last Visit: 31-Dec-99 18:00     Last Update: 12-Jul-24 23:23 Refresh ᐊ Prev1...2633263426352636263726382639264026412642 Next ᐅ