首页 > 其他 > 详细

int64_t 显示

时间:2015-09-01 12:39:23      阅读:165      评论:0      收藏:0      [点我收藏+]


if using C++ on Linux, be sure to #define __STDC_FORMAT_MACROS before including inttypes.h.

For int64_t type:

int64_t t;printf("%" PRId64 "\n", t);

for uint64_t type:

uint64_t t;printf("%" PRIu64 "\n", t);

you can also use PRIx64 to print in hexadecimal.

These macros are defined in inttypes.h


int64_t 显示

原文:http://my.oschina.net/tsh/blog/500097

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!