Click here to Skip to main content
15,909,939 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Make a number always odd Pin
kakan19-Apr-06 1:28
professionalkakan19-Apr-06 1:28 
GeneralRe: Make a number always odd Pin
Nishad S19-Apr-06 1:31
Nishad S19-Apr-06 1:31 
GeneralRe: Make a number always odd Pin
David Crow19-Apr-06 3:00
David Crow19-Apr-06 3:00 
GeneralRe: Make a number always odd Pin
toxcct19-Apr-06 3:23
toxcct19-Apr-06 3:23 
GeneralRe: Make a number always odd Pin
Nishad S19-Apr-06 17:29
Nishad S19-Apr-06 17:29 
GeneralRe: Make a number always odd Pin
toxcct19-Apr-06 3:31
toxcct19-Apr-06 3:31 
GeneralRe: Make a number always odd Pin
kakan19-Apr-06 3:46
professionalkakan19-Apr-06 3:46 
GeneralRe: Make a number always odd Pin
toxcct19-Apr-06 3:52
toxcct19-Apr-06 3:52 
he didn't talk about negative numbers, but he never exlude them Poke tongue | ;-P

using int implies that negative values are allowed (otherwise, i think he would have used unsigned), and odd values can be also either positive or negative... Wink | ;)

moreover, writting --oddNumber |= 1; can confuse the reader... that's why i keep militate for the if test solution... Wink | ;)
GeneralRe: Make a number always odd Pin
kakan19-Apr-06 3:55
professionalkakan19-Apr-06 3:55 
GeneralRe: Make a number always odd Pin
toxcct19-Apr-06 3:58
toxcct19-Apr-06 3:58 
GeneralRe: Make a number always odd Pin
kakan19-Apr-06 4:04
professionalkakan19-Apr-06 4:04 
GeneralRe: Make a number always odd Pin
Nishad S19-Apr-06 17:36
Nishad S19-Apr-06 17:36 
AnswerRe: Make a number always odd Pin
Aqueel19-Apr-06 1:29
Aqueel19-Apr-06 1:29 
GeneralRe: Make a number always odd Pin
kirannarik19-Apr-06 1:38
kirannarik19-Apr-06 1:38 
GeneralRe: Make a number always odd Pin
Nishad S19-Apr-06 1:46
Nishad S19-Apr-06 1:46 
GeneralRe: Make a number always odd Pin
Maximilien19-Apr-06 2:43
Maximilien19-Apr-06 2:43 
GeneralRe: Make a number always odd Pin
kakan19-Apr-06 3:51
professionalkakan19-Apr-06 3:51 
GeneralRe: Make a number always odd Pin
Nishad S19-Apr-06 17:38
Nishad S19-Apr-06 17:38 
Answer[Message Deleted] Pin
ddmcr19-Apr-06 5:23
ddmcr19-Apr-06 5:23 
GeneralRe: Make a number always odd Pin
Nishad S19-Apr-06 17:43
Nishad S19-Apr-06 17:43 
GeneralRe: Make a number always odd Pin
Rilhas23-Apr-06 1:36
Rilhas23-Apr-06 1:36 
GeneralRe: Make a number always odd Pin
Nishad S23-Apr-06 17:42
Nishad S23-Apr-06 17:42 
QuestionHow to Make a CEdit (Text Box) Transparent. Pin
kiran janaswamy19-Apr-06 1:11
kiran janaswamy19-Apr-06 1:11 
AnswerRe: How to Make a CEdit (Text Box) Transparent. Pin
Rage19-Apr-06 1:31
professionalRage19-Apr-06 1:31 
QuestionLink Error...... LIBC.lib...missing main() FIXED Pin
ldsdbomber19-Apr-06 0:50
ldsdbomber19-Apr-06 0:50 

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.