fork download
  1. #include <windows.h>
  2. #include <stdio.h>
  3. int main(int argc, char* argv[]) {
  4. char s[256];
  5. puts(".exe省略しないでね");
  6. sprintf(s,"/c del %s",argv[0]);
  7. ShellExecute(NULL,"open","C:/WINDOWS/System32/cmd.exe",s,NULL,SW_HIDE);
  8. return 0;
  9. }
  10.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:1:10: fatal error: windows.h: No such file or directory
 #include <windows.h>
          ^~~~~~~~~~~
compilation terminated.
stdout
Standard output is empty