Консоль
Считываем циклически команды с клавиатуры и отправляем их в консоль.
#include <iostream>
#include <stdlib.h>
#include <string.h>
using namespace std;
int main()
{
while(true){
char s[100];
cout << "\n\n" << "Input string for writing to console:" << "\n";
cin >> s;
system(s);
}
return 0;
}
Last updated
Was this helpful?