Chinaunix首页 | 论坛 | 博客
  • 博客访问: 8053540
  • 博文数量: 594
  • 博客积分: 13065
  • 博客等级: 上将
  • 技术积分: 10324
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-26 16:44
个人简介

推荐: blog.csdn.net/aquester https://github.com/eyjian https://www.cnblogs.com/aquester http://blog.chinaunix.net/uid/20682147.html

文章分类

全部博文(594)

分类: C/C++

2016-08-25 13:26:06

#include
#include
#include

// g++ -g -o x x.cpp -D__STDC_FORMAT_MACROS -std=c++11
int main()
{
        int64_t a = 32;
        //printf("%"PRId64"\n", a);
        printf("%" PRId64"\n", a); // 在PRId64前保留一个空格
        // 如果不保留空格,则C++11编译时将报如下警告:
        // invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix]
        // 将PRId64换成其它宏,情况相同
        return 0;
}
阅读(3362) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~