これらのフォーマット指定子の意味は何ですか?
%hd %hhd %ld %lld
%hd は、short integer
またはunsigned short integer
%hhd はshort short integer
またはunsigned short short integer
%ld はlong integer
またはunsigned long integer
%lld はlong long integer
またはunsigned long long integer
そのような単純な。
ここh
でhh
、、、l
はll
%d の長さ修飾子です
ここで提供されている Apple のドキュメントを参照してください: http://developer.apple.com/library/ios/#documentation/cocoa/conceptual/Strings/Articles/formatSpecifiers.html
IBM のこのドキュメントの方が少し優れていると思います。
%hd int x (short)x 10 1
%ld long x (long)x 10 1