15,905,414 members
Home / Discussions / C / C++ / MFC

# C / C++ / MFC

 Re: Beginner's Question Richard MacCutchan11-Sep-09 1:32 Richard MacCutchan 11-Sep-09 1:32
 Re: Beginner's Question [modified] UKM_Student11-Sep-09 2:00 UKM_Student 11-Sep-09 2:00
 Re: Beginner's Question Adam Roderick J11-Sep-09 2:32 Adam Roderick J 11-Sep-09 2:32
 Re: Beginner's Question CPallini11-Sep-09 2:09 CPallini 11-Sep-09 2:09
 Re: Beginner's Question UKM_Student11-Sep-09 2:12 UKM_Student 11-Sep-09 2:12
 Re: Beginner's Question CPallini11-Sep-09 2:32 CPallini 11-Sep-09 2:32
 Re: Beginner's Question UKM_Student11-Sep-09 2:41 UKM_Student 11-Sep-09 2:41
 Re: Beginner's Question CPallini11-Sep-09 2:51 CPallini 11-Sep-09 2:51
 UKM_Student wrote:if (k % 2 == 1) k++;??? if `k` is odd (an odd number `modulus` `2` gives `1`) then increment `k` (i.e. `k=k+1`) to make it even. (Just in case `firstNum `is odd). UKM_Student wrote:And i thought that "if statement" needs to be paired with an "else"? Actually the `else` clause is optional in the `if` statement, see, for instance, here. 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 2:59 UKM_Student 11-Sep-09 2:59
 Re: Beginner's Question UKM_Student11-Sep-09 3:04 UKM_Student 11-Sep-09 3:04
 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
 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
 Last Visit: 31-Dec-99 18:00     Last Update: 25-May-24 8:48 Refresh ᐊ Prev1...2631263226332634263526362637263826392640 Next ᐅ