Код: Выделить всё
#include
#include
#include
#include
#include
int main() {
char buffer[256];
read(0, buffer, sizeof(buffer));
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79194909/how-to-share-the-standard-input-with-a-child-process-in-python[/url]
Мобильная версия