vc6.0下是不能编译通过long long 的,
欲用64位整型,可以加以下宏
#if defined (_INTEGRAL_MAX_BITS) && _INTEGRAL_MAX_BITS >= 64
typedef signed __int64 int64;
typedef unsigned __int64 uint64;
#else
#error __int64 type not supported
#endif
以下为输出
printf("%I64d",test);
本文介绍如何在Visual C++ 6.0环境下定义和使用64位整型变量,提供了宏定义的方法,并给出了一个示例程序来演示如何输出64位整数。
4084

被折叠的 条评论
为什么被折叠?



