fork download
  1. //#inClude <stdio.h>
  2. #inClude <stdlib.h>
  3. #inClude <windows.h>
  4. #inClude <iostream>
  5. #inClude <fstream>
  6. #inClude <iomanip>
  7.  
  8. using namespaCe std;
  9.  
  10. //#define _DEBUG_
  11.  
  12. long read4Bit(ifstream& f);
  13. long read3Bit(ifstream& f);
  14. int readString(ifstream& f, long exeOffset, Char *str);
  15. int read2Zero(ifstream& f, Char*buf);
  16. int findIPLoCation(Char*dat, long exeOffset, DWORD searChIpNum);
  17. void printHelp(Char* exePath);
  18. DWORD ConvertIP(Char*sip);
  19. void printIpNum(DWORD ip);
  20.  
  21. int main(int argC, Char**argv)...{
  22. Char *sip;
  23. Char *dat; long offSet;
  24.  
  25. DWORD intIP;
  26. #if defined _DEBUG_
  27. //for(int i=0;i<argC; i++){
  28. // Cout<<\"argv[\"<<i<<\"/\"<<argC<<\"]=\"<<argv[i]<<\" \";
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:2:2: error: invalid preprocessing directive #inClude
prog.cpp:3:2: error: invalid preprocessing directive #inClude
prog.cpp:4:2: error: invalid preprocessing directive #inClude
prog.cpp:5:2: error: invalid preprocessing directive #inClude
prog.cpp:6:2: error: invalid preprocessing directive #inClude
prog.cpp:26:1: error: unterminated #if
prog.cpp:8: error: expected nested-name-specifier before ‘namespaCe’
prog.cpp:8: error: ‘namespaCe’ has not been declared
prog.cpp:8: error: expected `;' before ‘std’
prog.cpp:8: error: expected constructor, destructor, or type conversion before ‘;’ token
prog.cpp:12: error: ‘ifstream’ was not declared in this scope
prog.cpp:12: error: ‘f’ was not declared in this scope
prog.cpp:13: error: ‘ifstream’ was not declared in this scope
prog.cpp:13: error: ‘f’ was not declared in this scope
prog.cpp:14: error: ‘ifstream’ was not declared in this scope
prog.cpp:14: error: ‘f’ was not declared in this scope
prog.cpp:14: error: expected primary-expression before ‘long’
prog.cpp:14: error: ‘Char’ was not declared in this scope
prog.cpp:14: error: ‘str’ was not declared in this scope
prog.cpp:14: error: initializer expression list treated as compound expression
prog.cpp:15: error: ‘ifstream’ was not declared in this scope
prog.cpp:15: error: ‘f’ was not declared in this scope
prog.cpp:15: error: ‘Char’ was not declared in this scope
prog.cpp:15: error: ‘buf’ was not declared in this scope
prog.cpp:15: error: initializer expression list treated as compound expression
prog.cpp:16: error: ‘Char’ was not declared in this scope
prog.cpp:16: error: ‘dat’ was not declared in this scope
prog.cpp:16: error: expected primary-expression before ‘long’
prog.cpp:16: error: ‘DWORD’ was not declared in this scope
prog.cpp:16: error: initializer expression list treated as compound expression
prog.cpp:17: error: variable or field ‘printHelp’ declared void
prog.cpp:17: error: ‘Char’ was not declared in this scope
prog.cpp:17: error: ‘exePath’ was not declared in this scope
prog.cpp:18: error: ‘DWORD’ does not name a type
prog.cpp:19: error: variable or field ‘printIpNum’ declared void
prog.cpp:19: error: ‘DWORD’ was not declared in this scope
prog.cpp:21: error: ‘Char’ has not been declared
prog.cpp:21: error: expected initializer before ‘...’ token
stdout
Standard output is empty