返回列表 發帖
  1. #include <iostream>
  2. #include <cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int x=200,y=1;
  7.     string a[]{"□□□□□□□□□□","■□□□□□□□□□","■■□□□□□□□□","■■■□□□□□□□","■■■■□□□□□□","■■■■■□□□□□"
  8.     ,"■■■■■■□□□□","■■■■■■■□□□","■■■■■■■■□□","■■■■■■■■■□","■■■■■■■■■■"};
  9.     for(int i=1; i<=99 ; i++)
  10.     {
  11.         system("cls");
  12.         if(i==10*y)
  13.         {
  14.             y+=1;
  15.         }
  16.         cout<<i<<"% 載入中"<<a[y-1]<<endl;
  17.         _sleep(x);
  18.     }
  19.     system("cls");
  20.     cout<<100<<"% 完成!"<<a[10]<<endl;
  21.     system("pause");
  22.     return 0;
  23. }
複製代碼

TOP

返回列表