人名大小写不敏感。
对于 C++,你可以在读入后立刻像这样处理人名:
auto howInterestingData = [&](string &st) { for (auto &i : st) { if ('A' <= i and i <= 'Z') { i += 'a' - 'A'; } } }; string name; cin >> name; howInterestingData(name);