/*
从文件中读取n行,判定每行中是否含有某个子串,如果含有则输出此行
freopen("filename","r",stdin)
cin>>;
fclose(stdin);
freopen("filename","w",stdout)
cout<<
fclose(stdout);
*/
#include<iostream>
#include<string>
#include<algorithm>
#include<cstdio>
using namespace std;
string s;
string tt;
int main(){
freopen("C:\\Users\\81922\\Desktop\\p.txt","r",stdin);
while(true){
getline(cin,s);
string::size_type idx=s.find("Stopper Stumper");
if(idx==string::npos)
continue;
else{
tt=s;
break;
}
}
fclose(stdin);
cout<<tt;
return 0;
}
2020 2.28
最新推荐文章于 2023-11-28 20:20:17 发布