标题:滚动字幕问题
只看楼主
qq1
Rank: 2
等 级:论坛游民
帖 子:92
专家分:22
注 册:2010-3-26
得分:0 
谢谢!
2010-04-01 13:12
determine
Rank: 1
等 级:新手上路
帖 子:7
专家分:7
注 册:2010-3-31
得分:5 

先声明我不会,现在是不是更有趣
#include<stdio.h>
void main()
{   int i=1;
    void m1();
    void m2();
    void m3();
    void m4();
    while(i<=2)
    {   i++;
        if(i%2!=0)
        {m3();
        printf("\n");
        m4();
        printf("\n");}
        else {m1();
        printf("\n");
        m2(); }
}
}
    void m1()
    {
        int i,j;
        int m1[5][5]={{0,3,0,0,0},{0,3,0,0,0},{0,3,0,0,0},{0,3,0,0,0},{0,3,3,3,0}};
        for(i=0;i<=4;i++)
        {printf("\t\t");
            for(j=0;j<=4;j++)
        
               printf("%c",m1[i][j]);
            
            printf("\n");

        }

    }
    void m2()
    {
        int i,j;
        int m1[5][5]={{0,1,1,1,0},{0,1,0,1,0},{0,1,0,1,0},{0,1,0,1,0},{0,1,1,1,0}};
        for(i=0;i<=4;i++)
        {printf("\t\t");
            for(j=0;j<=4;j++)
   
            printf("%c",m1[i][j]);
            printf("\n");
        }
     }
      void m3()
    {
        int i,j;
        int m1[5][5]={{1,0,0,0,1},{0,1,0,1,0},{0,1,0,1,0},{0,1,0,1,0},{0,0,1,0,0}};
        for(i=0;i<=4;i++)
        {printf("\t\t");
            for(j=0;j<=4;j++)
            
            printf("%c",m1[i][j]);
        
            printf("\n");
        }
     }
      void m4()
    {
        int i,j;
        int m1[5][5]={{0,3,3,3,0},{0,3,0,0,0},{0,3,3,3,0},{0,3,0,0,0},{0,3,3,3,0}};
        for(i=0;i<=4;i++)
        {    printf("\t\t");
            for(j=0;j<=4;j++)
        
            printf("%c",m1[i][j]);
            
            printf("\n");
        }
     }
2010-04-01 13:49



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-301279-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.116667 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved