返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. #include<string>
  4. using namespace std;
  5. int main()
  6. {
  7.         int start,end;
  8.     cout<<"在此輸入ASKII碼"<<endl;
  9.     cout<<"起始值:";
  10.     cin>>start;
  11.     cout<<"終止值:";
  12.     cin>>end;
  13.     cout<<"所得字串:";
  14.     for(int i=start; i<=end; i++)
  15.     {
  16.             cout<<char(i);
  17.             cout<<" ";
  18.         }
  19.         cout<<endl;
  20.         system("pause");
  21.         return 0;
  22. }
複製代碼

TOP

返回列表