#GESP2186. [GESP]L3-202403-Q2186-S

[GESP]L3-202403-Q2186-S

在下列代码的横线处填写( ),可以使得输出是 GESP IS INTERESTING。

int main()
{
    string str = "gEsP is Interesting";
    int x = str.length();
    for (int i = 0; i < x; i++)
        if ((str[i] >= 'a') && (str[i] <= 'z'))
            ___________________;
    cout << str << endl;
    cout << endl;
    return 0;
}

{{ select(1) }}

  • str[i] += 'a' - 'A'
  • str[i] += 20
  • str[i] += 'A' - 'a'
  • 无法实现