返回列表 發帖
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5.     cin.tie(0);
  6.     cin.sync_with_stdio(0);
  7.     string str;
  8.     getline(cin,str);
  9.     cout<<"剛剛輸入的字串是"<<str<<endl;
  10.     cout<<str.size()<<" "<<str[1]<<" "<<str[3];
  11.     return 0;
  12. }
複製代碼
hahahahahahahaha

TOP

返回列表