头歌被锁住的测试集输出 C++复制freopen("out.txt","w",stdout); #include<unistd.h> execl("/bin/cat","cat","out.txt",NULL); 适用于能至少看到一个实际输出的情况