操作系统标准输入输出设备
WindowsCON
Linux/dev/tty

Windows

freopen("CON", "r", stdin);
freopen("CON", "w", stdout);

Linux

freopen("/dev/tty", "r", stdin);
freopen("/dev/tty", "w", stdout);