fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. unsigned char data[] = { 53,160,2,0,0,0,0,0 };
  6. long fileLenght = 0;
  7. for( int i=7;i >= 0; --i)
  8. fileLenght = (fileLenght << 8) + data[i];
  9. cout << fileLenght << endl;
  10. return 0;
  11. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
172085