__int64 TotalNumberOfBytes; BOOL GetDiskFreeSpaceFlag = GetDiskFreeSpaceEx( L"c:\\", // directory name NULL, // bytes available to caller (PULARGE_INTEGER)&TotalNumberOfBytes, // bytes on disk NULL // free bytes on disk ); if (GetDiskFreeSpaceFlag != 0) { printf("\n\rОбщий объем: %I64d ( %I64d Mb )", TotalNumberOfBytes, TotalNumberOfBytes / 1024 / 1000); } else printf("Отсутствует (GetDiskFreeSpace)"); Displays:
Total amount: 249464614912 (243617 Mb)
I want to do:
Total amount: 249 464 614 912 (243617 Mb)
I would like to display with spaces between digits, since there are displayed large numbers, for convenience, I want that would be displayed one by one. How to do this?
It is written that you need to use exactly this __int64 (64-bit) type to work with such large numbers.
ULONGLONGuse anunsignedtype such asULONGLONG- jfs