返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. #include<string>
  4. using namespace std;
  5. int main()
  6. {
  7.    
  8.     char jeb[50];
  9.     cout<<"請輸入任意一字串"<<endl;
  10.     cin.getline(jeb,30);
  11.     cout<<"你剛輸入的字串是: "<<jeb<<endl;
  12.     strupr(jeb);
  13.     cout<<"轉換為大寫: "<<jeb<<endl;
  14.     strlwr(jeb);
  15.      cout<<"轉換為小寫: "<<jeb<<endl;
  16.   
  17.    
  18.      
  19.         system("pause");
  20.         return 0;
  21. }
複製代碼

TOP

返回列表