返回列表 發帖
  1. #include <iostream>
  2. #include <cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.      while(true)   
  7.     for(int i=0;i<=15;i++)
  8.     {
  9.       if(i==0)
  10.         {
  11.         cout<<"歡        ";
  12.         }
  13.       if(i==1)
  14.         {
  15.         cout<<" 迎       ";
  16.         }
  17.       if(i==2)
  18.         {
  19.         cout<<"   光     ";
  20.         }   
  21.       if(i==3)
  22.         {
  23.         cout<<"     臨   ";
  24.         }     
  25.       if(i==4)
  26.         {
  27.         cout<<"歡        ";
  28.         }      
  29.        if(i==5)
  30.         {
  31.         cout<<"歡迎      ";
  32.         }
  33.         if(i==6)
  34.         {
  35.         cout<<"歡迎光    ";
  36.         }
  37.         if(i==7)
  38.         {
  39.         cout<<"歡迎光臨  ";
  40.         }
  41.         if(i==8)
  42.         {
  43.         cout<<"          ";
  44.         }if(i==9)
  45.         {
  46.         cout<<"歡迎      ";
  47.         }
  48.         if(i==10)
  49.         {
  50.         cout<<"歡迎光    ";
  51.         }
  52.         if(i==11)
  53.         {
  54.         cout<<"歡迎光臨  ";
  55.         }
  56.         if(i==12)
  57.         {
  58.         cout<<"          ";
  59.         }
  60.         if(i==13)
  61.         {
  62.         cout<<"歡迎光臨  ";
  63.         }
  64.         if(i==14)
  65.         {
  66.         cout<<"          ";
  67.         }
  68.         if(i==15)
  69.         {
  70.         cout<<"歡迎光臨  ";
  71.         }
  72.   
  73.         _sleep(487);
  74.        system("cls");
  75.     }
  76.    
  77.     system("pause");
  78.     return 0;     
  79. }
複製代碼

TOP

返回列表