c plus plus
  • Введение
  • Строки string
  • Векторы vector
  • Библиотека STL
  • Множества set
  • Словарь map
  • Консоль
  • Многопоточность
Powered by GitBook
On this page

Was this helpful?

Консоль

Считываем циклически команды с клавиатуры и отправляем их в консоль.

#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;
}
PreviousСловарь mapNextМногопоточность

Last updated 5 years ago

Was this helpful?