VC++ int64_t高低32位操作

#include "stdafx.h"
#include "stdint.h"
#include "windows.h"


int _tmain(int argc, _TCHAR* argv[])
{
	int64_t iVar64;
	int iHigh = 1, iLow = 1;

	LARGE_INTEGER* lNum = (LARGE_INTEGER*)&iVar64;
	lNum->HighPart = iHigh;
	lNum->LowPart = iLow;
	printf("iVar64 = %lld\n", iVar64);


	system("pause");
	return 0;
}


输出结果


你可能感兴趣的:(C++)