小智 9

%hd用于short integerunsigned short integer

%hhd用于short short integerunsigned short short integer

%ld是for long integerunsigned long integer

%lld用于long long integerunsigned long long integer

就那么简单.

在这里h,hh,l,ll是在%d只是长度修改

资料来源:http://developer.apple.com/library/ios/#documentation/cocoa/conceptual/Strings/Articles/formatSpecifiers.html

  • 据我所知,没有"短短线"这样的东西. (2认同)