在 Linux 下是可以这样用的: ./a.cpp < in.txt > out.txt 但是 powershell 下,输出能用但输入不能用了,并且搜不到or看不懂替代的方法。
./a.cpp < in.txt > out.txt