什么是用于很长很长的常量后缀 [英] What is the suffix used for long long constants
问题描述
如果我想使用类似下面的C code:
If i want to use something like below in a C code:
if(num < 0x100000000LL)
我想的比较发生在一个很长很长不变,但后缀LL不MSVC6.0工作,但它在微软的Visual Studio 2005的工作。
I want the comparison to happen on a long long constant, but suffix LL doesn't work in MSVC6.0 , but it works in MS Visual Studio 2005.
怎样才能得到它在MSVC 6.0的工作?
How can i get it working in MSVC 6.0?
-Ajit
推荐答案
据我所知,长长没有在MSVC 6.0。支持
AFAIK, long long isn't supported in MSVC 6.0.
例如,看看这个的话题。也许,__int64可代替。无论如何,我不知道要使用的其他后缀。
For example, have a look at this discussion thread. Perhaps, __int64 works instead. Anyway, I wouldn't know which other suffix to use.
编辑:__int64似乎工作和配套功能,似乎没有后缀需要在所有。看看这里,例如。还有一些变通方法在本页面的结尾。
__int64 seems to work and for the supporting functions, it seems that no suffix is needed at all. Have a look here, for example. There's also some workaround at the end of this page.
这篇关于什么是用于很长很长的常量后缀的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!