#include "iostream"
#include "fstream"
#include "cstdio"
using namespace std;
void main()
{
ifstream infile("1.txt");
ofstream outfile("data.txt");
char str[40000]={0};
char str1[30000]={0};
int i=0;
int j=1;
while(infile>>str)
{
j++;
cout<<j<<":"<<str<<endl;
if(j%2==0)
{
ifstream infile1("2.txt");
ofstream outfile1("3.txt");
}
else
{
ifstream infile1("3.txt");
ofstream outfile1("2.txt");
}
while(infile1>>str1)
{
if(strcmp(str,str1)==0)
{
infile1.close();
break;
}
else
{
outfile1<<str1<<endl;
}
if(strcmp(str1,"0000000")==0)
{
i++;
cout<<"用户数目:"<<i<<endl;
outfile<<str<<endl;
}
}
}
}