How can i get the last digit of an integer (or NSInteger) outputte开发者_如何学运维d to integer?
example:
int time = CFAbsoluteGetCurrent();
int lastDigit;
Use modulo:
int lastDigit = time % 10;
How can i get the last digit of an integer (or NSInteger) outputte开发者_如何学运维d to integer?
example:
int time = CFAbsoluteGetCurrent();
int lastDigit;
Use modulo:
int lastDigit = time % 10;
上一篇:日语个性签名唯美句子?
精彩评论