返回列表 發帖
  1. #include<cstdlib>
  2. #include<iostream>
  3. #include<ctime>
  4. using namespace std;
  5. int main()
  6. {
  7.     string str1="Good morning!";;
  8.     char str2[]="Good morning!";
  9.     cout<<str1<<endl;
  10.     cout<<str2<<endl;
  11.     cout<<str1[3]<<endl;
  12.     cout<<str2[7]<<endl;
  13.     system("pause");
  14.     return 0;   
  15. }
複製代碼

TOP

返回列表