返回列表 發帖
  1. #include<cstdlib>
  2. #include<iostream>
  3. #include<string>
  4. using namespace std;
  5. int main()
  6. {
  7.     char str[0];
  8.     cout<<"請輸入一字串: ";
  9.     cin.getline(str,100);
  10.     cout<<"轉成大寫:"<<strupr(str)<<endl;
  11.     cout<<"轉成小寫:"<<strlwr(str)<<endl;
  12.     system("pause");
  13.     return 0;   
  14. }
複製代碼

TOP

返回列表