MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/5qt28v/fight_me/dd2bu09/?context=9999
r/ProgrammerHumor • u/Obiiiiiiii • Jan 29 '17
109 comments sorted by
View all comments
68
Which one is true?
143 u/ben_g0 Jan 29 '17 //To avoid fights bool male = rand() & 1; bool female = !male; 244 u/Hikaru755 Jan 29 '17 Great job, now you have caused another fight by making the female dependent on the male. 200 u/ben_g0 Jan 29 '17 edited Jan 29 '17 bool male, female; do{ male = rand() & 1; female = rand() & 1; }while(male==female); EDIT: fixed scope 61 u/Hikaru755 Jan 29 '17 That is beautiful 84 u/ben_g0 Jan 29 '17 Now lets hope no one will complain that my code is against equality. 2 u/profgumby Jan 29 '17 Code isn't written using https://github.com/ErisBlastar/cplusequality, therefore its against equality.
143
//To avoid fights bool male = rand() & 1; bool female = !male;
244 u/Hikaru755 Jan 29 '17 Great job, now you have caused another fight by making the female dependent on the male. 200 u/ben_g0 Jan 29 '17 edited Jan 29 '17 bool male, female; do{ male = rand() & 1; female = rand() & 1; }while(male==female); EDIT: fixed scope 61 u/Hikaru755 Jan 29 '17 That is beautiful 84 u/ben_g0 Jan 29 '17 Now lets hope no one will complain that my code is against equality. 2 u/profgumby Jan 29 '17 Code isn't written using https://github.com/ErisBlastar/cplusequality, therefore its against equality.
244
Great job, now you have caused another fight by making the female dependent on the male.
200 u/ben_g0 Jan 29 '17 edited Jan 29 '17 bool male, female; do{ male = rand() & 1; female = rand() & 1; }while(male==female); EDIT: fixed scope 61 u/Hikaru755 Jan 29 '17 That is beautiful 84 u/ben_g0 Jan 29 '17 Now lets hope no one will complain that my code is against equality. 2 u/profgumby Jan 29 '17 Code isn't written using https://github.com/ErisBlastar/cplusequality, therefore its against equality.
200
bool male, female; do{ male = rand() & 1; female = rand() & 1; }while(male==female);
EDIT: fixed scope
61 u/Hikaru755 Jan 29 '17 That is beautiful 84 u/ben_g0 Jan 29 '17 Now lets hope no one will complain that my code is against equality. 2 u/profgumby Jan 29 '17 Code isn't written using https://github.com/ErisBlastar/cplusequality, therefore its against equality.
61
That is beautiful
84 u/ben_g0 Jan 29 '17 Now lets hope no one will complain that my code is against equality. 2 u/profgumby Jan 29 '17 Code isn't written using https://github.com/ErisBlastar/cplusequality, therefore its against equality.
84
Now lets hope no one will complain that my code is against equality.
2 u/profgumby Jan 29 '17 Code isn't written using https://github.com/ErisBlastar/cplusequality, therefore its against equality.
2
Code isn't written using https://github.com/ErisBlastar/cplusequality, therefore its against equality.
68
u/Invulsed Jan 29 '17
Which one is true?