while(scanf("%d%s%d",&end,str,&start)!=EOF)求助求助
while (cin >> end >> str >> start),试试这个行不
同上,想结束的时候输入eof
cin不需要输入eof
while(cin>>end>>str>>start)