fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. // インクルード
  5. #include <Windows.h>
  6. #pragma comment( lib, "shell32.lib" )
  7.  
  8. int main() {
  9. // 処理
  10. ShellExecute(NULL, L"open", L"cmd.exe", L"/c C:/work/bat/test.bat", L"", SW_HIDE);
  11.  
  12. // your code goes here
  13. return 0;
  14. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:5:21: fatal error: Windows.h: No such file or directory
 #include <Windows.h>
                     ^
compilation terminated.
stdout
Standard output is empty