1033 旧键盘打字(20 分)

···

include

include

include

using namespace std;
string s1, s2;
int hashtable[256] = { false };
bool f;
int main()
{
getline(cin, s1);
getline(cin, s2);
for (int i = 0; i < s2.length(); i++)
{
if (s1.find(toupper(s2[i])) != string::npos)continue;
if (isupper(s2[i]) && s1.find('+') != string::npos)continue;
cout << s2[i];
}
return 0;
}

你可能感兴趣的:(1033 旧键盘打字(20 分))