返回列表 發帖

跑馬燈 (六)

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     re:
  7.     int j=0;
  8.     for(int i=1; i<=100; i++)
  9.     {
  10.          if(i%5==0)
  11.              j++;
  12.          cout<<"新";
  13.          for(int i=1; i<=j; i++)
  14.          {
  15.               cout<<" ";
  16.          }
  17.          cout<<"年";
  18.          for(int i=1; i<=j; i++)
  19.          {
  20.               cout<<" ";
  21.          }
  22.          cout<<"快";
  23.          for(int i=1; i<=j; i++)
  24.          {
  25.               cout<<" ";
  26.          }
  27.          cout<<"樂";
  28.          system("cls");
  29.     }
  30.     goto re;
  31.     system("pause");   
  32.     return 0;
  33. }
複製代碼

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     re:
  7.     int j=0;
  8.     for(int i=1; i<=100; i++)
  9.     {
  10.          if(i%5==0)
  11.              j++;
  12.          cout<<"生";
  13.          for(int i=1; i<=j; i++)
  14.          {
  15.               cout<<"!";
  16.          }
  17.          cout<<"日";
  18.          for(int i=1; i<=j; i++)
  19.          {
  20.               cout<<"!";
  21.          }
  22.          cout<<"快";
  23.          for(int i=1; i<=j; i++)
  24.          {
  25.               cout<<"!";
  26.          }
  27.          cout<<"樂";
  28.          system("cls");
  29.     }
  30.     goto re;
  31.     system("pause");   
  32.     return 0;
  33. }
複製代碼

TOP

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {      
  6. re:
  7. int j=0;
  8. for(int i=1;i<=100;i++)   
  9. {
  10.      if(i%5==0)
  11.          j++;                     
  12.      cout<<"新";
  13.      for(int i=1;i<=j;i++)      
  14.      {
  15.          cout<<" ";
  16.      }
  17.      cout<<"年";
  18.      for(int i=1;i<=j;i++)      
  19.      {
  20.          cout<<" ";
  21.      }
  22.      cout<<"快";
  23.      for(int i=1;i<=j;i++)      
  24.      {
  25.          cout<<" ";
  26.      }
  27.      cout<<"樂";         
  28.      system("cls");      
  29. }
  30. goto re;         
  31. system("pause");     
  32. return 0;   
  33. }
複製代碼

TOP

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     re:
  7.     int j=0;
  8.     for(int i=1; i<=100; i++)
  9.     {
  10.          if(i%5==0)
  11.              j++;
  12.          cout<<"新";
  13.          for(int i=1; i<=j; i++)
  14.          {
  15.               cout<<" ";
  16.          }
  17.          cout<<"年";
  18.          for(int i=1; i<=j; i++)
  19.          {
  20.               cout<<" ";
  21.          }
  22.          cout<<"快";
  23.          for(int i=1; i<=j; i++)
  24.          {
  25.               cout<<" ";
  26.          }
  27.          cout<<"樂";
  28.          system("cls");
  29.     }
  30.     goto re;
  31.     system("pause");   
  32.     return 0;
  33. }
複製代碼

TOP

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     re:
  7.     int j=0;
  8.     for(int i=1; i<=100; i++)
  9.     {
  10.          if(i%5==0)
  11.              j++;
  12.          cout<<"新";
  13.          for(int i=1; i<=j; i++)
  14.          {
  15.               cout<<" ";
  16.          }
  17.          cout<<"年";
  18.          for(int i=1; i<=j; i++)
  19.          {
  20.               cout<<" ";
  21.          }
  22.          cout<<"快";
  23.          for(int i=1; i<=j; i++)
  24.          {
  25.               cout<<" ";
  26.          }
  27.          cout<<"樂";
  28.          system("cls");
  29.     }
  30.     goto re;
  31.     system("pause");   
  32.     return 0;
  33. }
複製代碼

TOP

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     re:
  7.     int j=0;
  8.     for(int i=1; i<=100; i++)
  9.     {
  10.           if(i%5==0)
  11.               j++;
  12.           cout<<"新";
  13.           for(int i=1; i<=j; i++)
  14.           {
  15.                   cout<<" ";        
  16.           }
  17.           cout<<"年";
  18.           for(int i=1; i<=j; i++)
  19.           {
  20.                   cout<<" ";        
  21.           }
  22.           cout<<"快";
  23.           for(int i=1; i<=j; i++)
  24.           {
  25.                   cout<<" ";        
  26.           }
  27.           cout<<"樂";
  28.           system("cls");
  29.     }
  30.     goto re;
  31.     system("pause");
  32.     return 0;   
  33. }
複製代碼

TOP

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.   re:
  7.   int j=0;
  8.   for(int i=1;i<=100;i++)
  9.   {
  10.           if(i%5==0)
  11.           j++;     
  12.           cout<<"新";
  13.          for(int i=1;i<=j;i++)
  14.           {
  15.                cout<<" ";
  16.                  }   
  17.               cout<<"年";
  18.          for(int i=1;i<=j;i++)
  19.          {
  20.           cout<<" ";
  21.                  }   
  22.           cout<<"快";
  23.          for(int i=1;i<=j;i++)
  24.          {
  25.           cout<<" ";
  26.                  }   
  27.           cout<<"樂";
  28.           system("cls");
  29.   }
  30.   goto re;            
  31.   system("pause");
  32.   return 0;  
  33. }
複製代碼

TOP

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     re:
  7.     int j=0;
  8.     for(int i=1; i<=160; i++)
  9.     {
  10.       if(i%5==0)
  11.           j++;
  12.       cout<<"新";
  13.       for(int i=1; i<=j; i++)
  14.       {
  15.         cout<<" ";      
  16.     }
  17.       cout<<"年";
  18.       for(int i=1; i<=j; i++)
  19.       {
  20.         cout<<" ";      
  21.     } cout<<"快";
  22.       for(int i=1; i<=j; i++)
  23.       {
  24.         cout<<" ";      
  25.     }cout<<"樂";
  26.     system("cls");
  27. }
  28.     goto re;
  29.     system("pause");
  30.     return 0;
  31. }
複製代碼

TOP

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     re:
  7.     int j=0;
  8.     for(int i=1; i<=100; i++)
  9.     {
  10.          if(i%5==0)
  11.              j++;
  12.          cout<<"新";
  13.          for(int i=1; i<=j; i++)
  14.          {
  15.              cout<<" ";
  16.          }
  17.          cout<<"年";
  18.          for(int i=1; i<=j; i++)
  19.          {
  20.              cout<<" ";
  21.          }
  22.          cout<<"快";
  23.          for(int i=1; i<=j; i++)
  24.          {
  25.              cout<<" ";
  26.          }
  27.          cout<<"樂";
  28.          system("cls");
  29.     }
  30.     goto re;
  31.     system ("pause");
  32.     return 0;
  33. }
複製代碼

TOP

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     re:
  7.     int j=0;
  8.     for(int i=1; i<=100; i++)
  9.     {
  10.          if(i%5==0)
  11.              j++;
  12.          cout<<"新";
  13.          for(int i=1; i<=j; i++)
  14.          {
  15.               cout<<" ";
  16.          }
  17.          cout<<"年";
  18.          for(int i=1; i<=j; i++)
  19.          {
  20.               cout<<" ";
  21.          }
  22.          cout<<"快";
  23.          for(int i=1; i<=j; i++)
  24.          {
  25.               cout<<" ";
  26.          }
  27.          cout<<"樂";
  28.          system("cls");
  29.     }
  30.     goto re;
  31.     system("pause");   
  32.     return 0;
  33. }
複製代碼

TOP

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     re:
  7.     for(int i=1;i<=100;i++)
  8.     {
  9.         if(i%5==0)
  10.         {
  11.             cout<<"新";   
  12.             for(int j=1;j<=i/10;j++)
  13.             {
  14.                 cout<<" ";        
  15.             }
  16.             cout<<"年";
  17.             for(int k=1;k<=i/10;k++)
  18.             {
  19.                 cout<<" ";        
  20.             }
  21.             cout<<"快";
  22.             for(int t=1;t<=i/10;t++)
  23.             {
  24.                 cout<<" ";        
  25.             }
  26.             cout<<"樂";
  27.             system("cls");
  28.             }     
  29.      }           
  30.     goto re;     
  31.     system("pause");
  32.     return 0;   
  33. }
複製代碼

TOP

返回列表