29 lines
412 B
C++
29 lines
412 B
C++
#include <iostream>
|
|
#include <string>
|
|
#include <cmath>
|
|
#include <fstream>
|
|
|
|
|
|
int main() {
|
|
|
|
std::string s = "./system22";
|
|
std::string s1 = "";
|
|
const char* cstr1;
|
|
|
|
for (int i = 0; i < 4; i++) {
|
|
if (i == 3) {
|
|
s1 = s + " " + std::to_string(i) + " 1& ";
|
|
}
|
|
else {
|
|
s1 = s + " " + std::to_string(i) + " 0& ";
|
|
}
|
|
cstr1 = s1.c_str();
|
|
std::system(cstr1);
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
} |