fork(2) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. typedef unsigned long long uint64;
  5. typedef unsigned long uint32;
  6. typedef long long int64;
  7. typedef signed long int32;
  8.  
  9. int main() {
  10. uint64 steamID64 = 76561201960266184;
  11. uint32 m_unAccountID = steamID64 & 0xFFFFFFFF;
  12. printf("%llu\n", steamID64);
  13. printf("STEAM_0:%u:%u\n", !!(m_unAccountID % 2), (int32)(m_unAccountID/2));
  14. printf("STEAM_0:%u:%u\n", !!(m_unAccountID % 2), (int32)m_unAccountID/2);
  15. return 0;
  16. }
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
76561201960266184
STEAM_0:0:2000000228
STEAM_0:0:4147483876