对拍程序

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int T; scanf("%d", &T);
    while(T--)
    {
        system("data > input.txt");
        system("a+b < input.txt > 1.out");
        system("test < input.txt > 2.out");
        if(system("fc 1.out 2.out")) 
        {
            system("pause");
            break;
        } 
    }
    return 0;
}
View Code

 

posted @ 2017-04-22 11:53  19992147  阅读(915)  评论(0编辑  收藏  举报