jQuery火箭图标返回顶部代码 - 站长素材
jQuery火箭图标返回顶部代码 - 站长素材

%lld 和 %I64d

在Linux下输出long long 类型的是 

printf("%lld", a);

在Windows下输出是

printf("%I64d", a);

xxy学姐:"如果不知道测评机是啥的咋办?”

“像这样!!”

#ifdef Linux
#define LL "%lld"
#else 
#define LL "%I64d"
#endif

这么重要的东西当然要贴在博客里!

 stO  wxyww Orz(那么认真的给我讲题, 表示灰常感谢)

 %%%

eg:

#include <cstdio>
#include <iostream>
#ifdef Linux
#define LL "%lld"
#else 
#define LL "%I64d"
#endif
using namespace std;
int main() {
    long long a;
    cin >> a;
    printf(LL, a);
    return 0;
}

艹!我以后要是再写错这个玩意儿,我就请yxy吃饭!艹

posted @ 2019-10-05 15:11  lzpclxf  阅读(1563)  评论(3)    收藏  举报