| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 14316 人关注过本帖
标题:生日快乐!
只看楼主 加入收藏
UserYuH
Rank: 12Rank: 12Rank: 12
来 自:毅华
等 级:火箭侠
威 望:8
帖 子:720
专家分:3300
注 册:2009-8-10
结帖率:100%
收藏
已结贴  问题点数:100 回复次数:81 
生日快乐!
今天是10月27日周二,下周四是我生日,给自己写了个程序,祝我生日快乐,今天提前写好,就提前庆祝吧。
为了庆祝放100分。
·
程序代码:
#include <stdio.h>
#include <dos.h>

int main(void)
{int i,j,k,n,M=-2;
char ch,jin[][32]={

       1,
     0,    1,0,
     2,    -128,
     4,    64,   8,
     32,18,24,33,-114,
   -64,   -124,
    0,      0,
   31,     -16,  0,
  32, 0,32,0,64,0,64,
            0,
          -128,
            1,
            0,
            0,   0,
   63,-4,1,0,1,0,1,0,1,


      0,127,-2,1,0,1,
      0,           2,
      -128,        2,
      64           ,
      4,           32,
      8,24,16,14,32,4,
      64,          0,
      0,           0,
      15,          -16,
      8,           16,
      15,          -16,
      8,16,15,-16,0,0,
      -1,          -2,


      1,     0,
      9,     0,
      9,     -8,
      9,0 ,21,0,35,0,
   4, -2 ,    0,   0,
   6, 64     ,56   ,
   80 ,8     ,72  ,8,
      72 ,8,64,-1,-2,8,64,
      8,     72,
      14,   40,56,
      48,  -56 ,32,
      8,   80,   9,
      -110 ,8,   10,
      40,  6,    16,2,
      16,-128,   16,-128,
      32 ,        -128,


               124,
           -4,69,4,69,
      4,70,4,124,
     -124       ,68,
     68,         68,
     100,        68,
     36,68,4,124,4,68,40,64,
      16,        0,
        0,       0,
       -128,    16, -64,
       16,     -128,   16,
     -120,       31,   -4,32,
    -128,        32,    -128,
     64,       -120,    -97,-4,
     0,   -128  ,0,     -128,
     0,     -128 ,0,
              -128,


          0,
        -124,
          127,-2,
         0,0,0,0,31,
       -16,16,16,16,16,
      16,16,16,16,31,-16,
     16,16,16,16,16,16,16,
     16,16,16,31,-16,16,16,
     0,0,0,0,0,0,0,0,0,0,0,
      0,0,0,0,0,0,0,0,0,0,
       0,0,0,0,0,48,0,48,
        0,16,0,32,0,0,0,
         32,0,17,-8,17,
          8,-3,8,5,8,
            9,8,17,
            8,57,-8,
           84,-112,
             -108,
      -112,16,-112,16,-112,17,18,
      17,18,18,18,20,14,6,64,56,
      80,8,72,8,72,8,64,-1,-2,8,
      64,8,72,14,40,56,48,-56,32,
      8,80,9,-110,8,10,40,6,16,2,
      0,-128,16,-64,16,-128,16,-120,
      31,-4,32,-128,32,-128,64,-120,
      -97,-4,0,-128,0,-128,0,-128,
      0,-128,0,-124,127,-2,0,0,0,
      0,31,-16,16,16,16,16,16,16,
      16,16,31,-16,16,16,16,16,16,
      16,16,16,16,16,31,-16,16,16,
      0,0,0,0,32,-128,32,-128,32,
      -128,55,-8,-88,-120,-88,-120,
      -96,-120,47,-2,32,-128,33,64,
      33,64,33,32,34,16,34,24,36,14,
      40,4,0,48,1,-8,31,0,16,-128,
      16,-128,16,-128,63,-4,16,-128,
      8,-128,12,-112,24,-120,48,-116,
      36,-122,66,-124,1,0,0,0,},a[56]=
      {-61,0,0,0,-61,0,-61,-61,0,0,0,
102,0,-61,-61,60,60,66,60,102,-61,-61,102,102,-25,24,
102,-1,-61,48,-1,108,24,102,-61,-61,12,-64,120,24,102,
-61,-25,102,102,112,24,126,-61,126,60,60,112,24,60,-61
};for(i=0;i<50;i++)printf("\n");  for(k=0;k<14;k++){
for(i=0;i<32;i++){if(i%2==0)printf("                         ");
ch=jin[k][i];for(j=0;j<8;j++){if(ch & 0x80)printf("%c",
3);else printf(" ");ch<<=1;}if((i+1)%2==0){delay(M),
printf("\n");}}for(j=0;j<3;j++){delay(M);printf("\n");}
}for(i=0;i<56;i++){ch=a[i];if(i%7==0){delay(M);printf
("          ");}for(j=0;j<8;j++){if(ch & 0x80)printf
("%c",3);else printf(" ");ch<<=1;}if((i+1)%7==0)printf
("\n");}for(j=0;j<5;j++){delay(M);printf("\n");}getch();return 0;}

收到的鲜花
  • 广陵绝唱2009-10-27 17:29 送鲜花  25朵   附言:生日快乐
搜索更多相关主题的帖子: 快乐 生日 
2009-10-27 16:26
pgy
Rank: 11Rank: 11Rank: 11Rank: 11
来 自:C
等 级:小飞侠
威 望:8
帖 子:1248
专家分:2329
注 册:2009-9-23
收藏
得分:10 
生日快乐

我可好玩啦...不信你玩玩^_^
2009-10-27 16:28
pgy
Rank: 11Rank: 11Rank: 11Rank: 11
来 自:C
等 级:小飞侠
威 望:8
帖 子:1248
专家分:2329
注 册:2009-9-23
收藏
得分:0 
今天是你的生日,祝你生日快乐,UserYuH

我可好玩啦...不信你玩玩^_^
2009-10-27 16:29
UserYuH
Rank: 12Rank: 12Rank: 12
来 自:毅华
等 级:火箭侠
威 望:8
帖 子:720
专家分:3300
注 册:2009-8-10
收藏
得分:0 
谢谢,谢谢,下周四哈,提前庆祝。呵呵。

努力—前进—变老—退休—入土
2009-10-27 16:32
C90
Rank: 2
等 级:论坛游民
帖 子:9
专家分:12
注 册:2009-10-20
收藏
得分:10 
强悍
2009-10-27 16:33
pgy
Rank: 11Rank: 11Rank: 11Rank: 11
来 自:C
等 级:小飞侠
威 望:8
帖 子:1248
专家分:2329
注 册:2009-9-23
收藏
得分:0 
利用各式各样的判断和循环输出“❤”,“❤”在我的win-tc对应无符号3.
ps:你码了多久
ps:庐山真面目出来啦

我可好玩啦...不信你玩玩^_^
2009-10-27 16:34
C90
Rank: 2
等 级:论坛游民
帖 子:9
专家分:12
注 册:2009-10-20
收藏
得分:0 
哥看不懂啊
2009-10-27 16:36
pgy
Rank: 11Rank: 11Rank: 11Rank: 11
来 自:C
等 级:小飞侠
威 望:8
帖 子:1248
专家分:2329
注 册:2009-9-23
收藏
得分:0 
祝福完了再找bug
不知道是不是我编译器问题,“是”和“生”好像处理的有问题

我可好玩啦...不信你玩玩^_^
2009-10-27 16:40
邶风
Rank: 5Rank: 5
等 级:职业侠客
帖 子:287
专家分:335
注 册:2009-1-20
收藏
得分:10 
生日快乐 哥来站首页

#include
2009-10-27 16:41
zqb7899
Rank: 4
等 级:业余侠客
帖 子:159
专家分:238
注 册:2009-10-16
收藏
得分:10 
生日快乐!
2009-10-27 16:42
快速回复:生日快乐!
数据加载中...
 
   



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

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