PRId64的正确用法
来源:互联网 发布:看高清电视直播的软件 编辑:程序博客网 时间:2024/04/28 00:43
#include <inttypes.h>
#include <stdint.h>
#include <stdio.h>
// 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;
}
#include <stdint.h>
#include <stdio.h>
// 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;
}
0 0
- PRId64的正确用法
- C++中正确使用PRId64
- C++中正确使用PRId64
- C++中正确使用PRId64
- C++中正确使用PRId64
- C++中正确使用PRId64
- C++中正确使用PRId64
- C++中正确使用PRId64
- PRID64干啥的
- PRId64正确使用来保证跨平台
- GetParameterValue()的正确用法
- TransactionScope的正确用法
- ISNULL()的正确用法
- NOLOGGING的正确用法
- SetForegroundWindow的正确用法
- ThreadLocal的正确用法
- watchdog的正确用法
- super的正确用法
- 探索性测试,笔记一
- 把php.exe加入系统环境变量-使用命令行可快速执行
- spring boot 加入jsp自定义标签对get请求参数加密
- IMX6Q设置启动模式
- navigation bar的不透明背景图与
- PRId64的正确用法
- jQuery checked事件
- CentOS6.3 mysql主从复制(注:mysql是通过yum源安装的)
- Unity 进阶 - 动画系统 - Mecanim动画系统
- 斗诗
- iOS学习之RunLoop的深入理解
- 冒泡排序 -------理解版
- 设置输入框只能输入数字
- Hive插件开发详解