返回列表 發帖
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <string.h>
  4. using namespace std;
  5. int main()
  6. {
  7.         int i = 0;
  8.         char a[] = "ABCD";
  9.         while ( i < strlen(a))
  10.         {
  11.                 cout << a [i] << endl;
  12.                 i++;
  13.         }
  14.         system ("pause");
  15.         return 0;
  16. }
複製代碼

TOP

返回列表