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

TOP

返回列表