alphacyberranger@lemmy.world to Programmer Humor@programming.devEnglish · 1 year agoBleeding edge techlemmy.worldimagemessage-square12fedilinkarrow-up168arrow-down11
arrow-up167arrow-down1imageBleeding edge techlemmy.worldalphacyberranger@lemmy.world to Programmer Humor@programming.devEnglish · 1 year agomessage-square12fedilink
minus-squareobosob@feddit.uklinkfedilinkEnglisharrow-up0·edit-21 year agoYeah, just use a char for card and test if(card < '7') count++; else count--; Or something, don’t mix types.
minus-squarenothacking@discuss.tchncs.delinkfedilinkarrow-up0·1 year agoWell that won’t work for 7, 8 or 9.
minus-squareobosob@feddit.uklinkfedilinkEnglisharrow-up2·1 year agoI didn’t notice that 7,8,9 had no effect on the count. My bad.
Yeah, just use a char for card and test
if(card < '7') count++; else count--;
Or something, don’t mix types.
Well that won’t work for 7, 8 or 9.
I didn’t notice that 7,8,9 had no effect on the count. My bad.