赞
踩
根据msdn文档
Docs > Previous Versions > Visual Studio > Run-Time Library Reference > Alphabetical Function Reference > Size and Distance Specification
https://docs.microsoft.com/zh-hk/previous-versions/visualstudio/visual-studio-2008/tcxf1dw6(v=vs.90)
使用 %Iu 表示 size_t 最合适,在32位、64位上分别采用不同的长度
To specify | Use prefix | With type specifier |
---|---|---|
ptrdiff_t (that is, __int32 on 32-bit platforms, __int64 on 64-bit platforms) | I | d, i, o, x, or X |
size_t (that is, unsigned __int32 on 32-bit platforms, unsigned __int64 on 64-bit platforms) | I | o, u, x, or X |
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。