Two variables will not subtract in XCODE
Posted
by Michael Amici
on Stack Overflow
See other posts from Stack Overflow
or by Michael Amici
Published on 2010-06-15T21:11:47Z
Indexed on
2010/06/15
21:12 UTC
Read the original article
Hit count: 131
I am trying to subtract one variable from another, and use that output. but when I subtract them, the outcome is just the second variable negative!
int distance = pointX-pointXTwo;
NSLog(@"%d", distance);
© Stack Overflow or respective owner