#include <iostream> #include <windows.h> #include <conio.h> using namespace std; int…
Jump to turn (11)
- 1#include #include #include using namespace std; int main() { STARTUPINFO Startup
- 2#include #include void heapify(std::vector & arr, int n, int i) { int largest =
- 3#include #include #include using namespace std; int main() { STARTUPINFO Startup
- 4#include #include void heapify(std::vector & arr, int n, int i) { int smallest =
- 5Написать программу, запускающую три дочерних потока. Каждый поток увеличивает (н
- 6сделай код более легким для понимания как в примере при помощи нескольких void
- 7Поясни весь код на русском
- 8Обьясни еще понятнее
- 9Обьясни код еще более понятнее
- 10Обьясни код ссылаясь на строки, чтобы было очень понятно
- 11#include #include #include using namespace std; const int NUMTHREADS = 3; // Óêà
- User
#include #include <windows.h> #include <conio.h> using namespace std; int main() { STARTUPINFO StartupInfo; ZeroMemory( &StartupInfo, sizeof(StartupInfo)); StartupInfo.cb = sizeof(StartupInfo);
PROCESS_INFORMATION ProcInfo; ZeroMemory(&ProcInfo, sizeof(ProcInfo)); char AppName[] = "endless.exe 12"; if(!CreateProcess(NULL, AppName, NULL, NULL, FALSE, 0, NULL, NULL, &StartupInfo, &ProcInfo)) return 0; cout << "Click 'q' to stop" << endl; char ch = NULL; while(ch != 'q') ch=getch(); TerminateProcess(ProcInfo.hProcess,1);
CloseHandle( ProcInfo.hProcess ); CloseHandle( ProcInfo.hThread ); return 0; } в чем ошибка
- Assistant