公告
财富商城
积分规则
提问
发文
2019-08-07 08:07发布
叼着烟拽天下
What would be the meaning of these format specifiers?
%hd %hhd %ld %lld
I think this document from IBM is a bit better.So:
%hd int x (short)x 10 1 %ld long x (long)x 10 1
Just look into the Documentation from Apple provided here: http://developer.apple.com/library/ios/#documentation/cocoa/conceptual/Strings/Articles/formatSpecifiers.html
%hd is used for short integer or unsigned short integer
short integer
unsigned short integer
%hhd is for short short integer or unsigned short short integer
short short integer
unsigned short short integer
%ld is for long integer or unsigned long integer
long integer
unsigned long integer
%lld is for long long integer or unsigned long long integer
long long integer
unsigned long long integer
Simple as that.
Here h , hh , l , ll are just length modifiers in %d
h
hh
l
ll
Source: http://developer.apple.com/library/ios/#documentation/cocoa/conceptual/Strings/Articles/formatSpecifiers.html
最多设置5个标签!
I think this document from IBM is a bit better.So:
Just look into the Documentation from Apple provided here: http://developer.apple.com/library/ios/#documentation/cocoa/conceptual/Strings/Articles/formatSpecifiers.html
%hd is used for
short integer
orunsigned short integer
%hhd is for
short short integer
orunsigned short short integer
%ld is for
long integer
orunsigned long integer
%lld is for
long long integer
orunsigned long long integer
Simple as that.
Here
h
,hh
,l
,ll
are just length modifiers in %dSource: http://developer.apple.com/library/ios/#documentation/cocoa/conceptual/Strings/Articles/formatSpecifiers.html