| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 14316 人关注过本帖
标题:生日快乐!
取消只看楼主 加入收藏
UserYuH
Rank: 12Rank: 12Rank: 12
来 自:毅华
等 级:火箭侠
威 望:8
帖 子:720
专家分:3300
注 册:2009-8-10
结帖率:100%
收藏
已结贴  问题点数:100 回复次数:6 
生日快乐!
今天是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
UserYuH
Rank: 12Rank: 12Rank: 12
来 自:毅华
等 级:火箭侠
威 望:8
帖 子:720
专家分:3300
注 册:2009-8-10
收藏
得分:0 
谢谢,谢谢,下周四哈,提前庆祝。呵呵。

努力—前进—变老—退休—入土
2009-10-27 16:32
UserYuH
Rank: 12Rank: 12Rank: 12
来 自:毅华
等 级:火箭侠
威 望:8
帖 子:720
专家分:3300
注 册:2009-8-10
收藏
得分:0 
Thank!各位,,马上摆桌,各位记得送礼呀。呵呵。
·
程序要TC2运行,Win-tc也行,都测试过没问题。

努力—前进—变老—退休—入土
2009-10-28 18:28
UserYuH
Rank: 12Rank: 12Rank: 12
来 自:毅华
等 级:火箭侠
威 望:8
帖 子:720
专家分:3300
注 册:2009-8-10
收藏
得分:0 
回复 44楼 burningbebe
用TC2.0, Win-tc也测试通过

努力—前进—变老—退休—入土
2009-10-31 23:49
UserYuH
Rank: 12Rank: 12Rank: 12
来 自:毅华
等 级:火箭侠
威 望:8
帖 子:720
专家分:3300
注 册:2009-8-10
收藏
得分:0 
回复:wangcheng911
有BCCN有得下载,给你连接。
TC2.0     https://www.bccn.net/Soft/kfyy/c/200409/1.html
Win-TC    https://www.bccn.net/Soft/kfyy/c/200409/2.html
·
直接运行的:
SHENGRI.rar (7.86 KB)


[ 本帖最后由 UserYuH 于 2009-11-1 09:37 编辑 ]

努力—前进—变老—退休—入土
2009-11-01 09:31
UserYuH
Rank: 12Rank: 12Rank: 12
来 自:毅华
等 级:火箭侠
威 望:8
帖 子:720
专家分:3300
注 册:2009-8-10
收藏
得分:0 

今天2009年11月5日星期四,农历九月十九,开始过我的生日了。         
能与大家分享,非常开心,谢谢大家的祝福。                              


努力—前进—变老—退休—入土
2009-11-05 02:28
UserYuH
Rank: 12Rank: 12Rank: 12
来 自:毅华
等 级:火箭侠
威 望:8
帖 子:720
专家分:3300
注 册:2009-8-10
收藏
得分:0 
回复 72楼 雪花神剑
你说话好特别,我是“醉翁之意不在酒”。

努力—前进—变老—退休—入土
2009-11-09 00:24
快速回复:生日快乐!
数据加载中...
 
   



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

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