fork download
  1. #include <iostream>
  2. #include <string>
  3. #include <sstream>
  4. #include <iomanip>
  5.  
  6. std::wstring large_integer_to_wstring(long long var) {
  7. std::wostringstream wss;
  8. wss << std::setfill(L'0') << std::setw(16) << std::hex << var;
  9. return wss.str();
  10. }
  11.  
  12. int main() {
  13. long long var = 244838016400062ull;
  14. std::wcout << large_integer_to_wstring(var);
  15. }
Success #stdin #stdout 0s 3080KB
stdin
Standard input is empty
stdout
0000deadcafebabe