#include<bits/stdc++.h> using namespace std; #define max 100 int main(){ string s = "salt",temp,op; string shu; char ha[max] ; while(getline(cin,shu)){ temp = shu; // cout<<temp; transform(shu.begin(),shu.end(),shu.begin(),::tolower); if(shu.find(s)+1)cout<<temp<<endl; } return 0; } |
Double click to view unformatted code.