#include <stdio.h> #include <math.h> #include <string.h> #include<string> #include<iostream> #include<algorithm> using namespace std; int main() { string a,b; while (getline(cin, a)) { b = a; transform(a.begin(), a.end(), a.begin(),::tolower); if (a.find("salt") != -1) { cout << b << endl; } } return 0; } |
Double click to view unformatted code.