返回列表 發帖
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5.     int n;
  6.     string str;
  7.     cin>>str>>n;
  8.     if(str[n]<='Z')
  9.         str[n]+=32;
  10.     else
  11.         str[n]-=32;
  12.     cout<<"The letter that was selected is: "<<str[n]<<endl;
  13.     cout<<str;
  14.     return 0;
  15. }
複製代碼

TOP

返回列表