Beep函数 夜空中最亮的星 C语言

#include<windows.h>
#include<stdio.h>
#define p 500//一拍 
//低音 low 
#define l1 262
#define l1p 277
#define l2 294
#define l2p 311
#define l3 330
#define l4 349
#define l4p 370
#define l5 392
#define l5p 415
#define l6 440
#define l6p 466
#define l7 494
//中音 normal
#define n1 523
#define n1p 554//#1(升半音) 
#define n2 587
#define n2p 622
#define n3 659
#define n4 698
#define n4p 740
#define n5 784
#define n6 880
#define n6p 932
#define n7 988
//高音 high
#define h1 1046
#define h1p 1109
#define h2 1175
#define h2p 1245
#define h3 1318
#define h4 1397
#define h4p 1480
#define h5 1568
#define h6 1760
#define h6p 1865
#define h7 1976
#define t 1000
void jg(){
	 printf("夜空中最亮的星\n");
	 Sleep(2*t);
	 printf("夜空中最亮的星 能否听清\n");
	 Beep(n3,0.5*p);Beep(n2,0.5*p);Beep(n3,0.5*p);Beep(n2,0.5*p);Beep(n3,0.5*p);
	 Beep(n5,0.5*p);Beep(n5,3*p);Sleep(0.5*p);Beep(l5,0.5*p);Beep(n1,1.5*p);
	 Beep(n2,1.5*p);Beep(n1,3*p);
	 printf("那仰望的人 心底的孤独和叹息\n");
	 Sleep(0.5*p);Beep(n1,0.5*p);Beep(n1,0.5*p);Beep(n2,0.5*p);Beep(n3,0.5*p);
	 Beep(n1,1.5*p);Sleep(0.5*p);Beep(l6,0.5*p);Beep(n1,0.5*p);Beep(n2,0.5*p);
	 Beep(n3,0.5*p);Beep(n1,1.5*p);Sleep(0.5*p);Beep(l6,0.5*p);Beep(n2,1.5*p);
	 Beep(n3,2.5*p);
	 printf("哦夜空中最亮的星 能否记起\n"); 
	 Sleep(3.5*p);Beep(l5,0.5*p);Beep(n3,0.5*p);Beep(n2,0.5*p);Beep(n3,0.5*p);
	 Beep(n2,0.5*p);Beep(n3,0.5*p);Beep(n5,0.5*p);Beep(n5,3*p);Sleep(0.5*p);
	 Beep(l5,0.5*p);Beep(n1,1.5*p);Beep(n2,1.5*p);Beep(n1,3*p);
	 printf("曾与我同行 消失在风里的身影\n");
	 Sleep(0.5*p);Beep(n1,0.5*p);Beep(n2,0.5*p);Beep(n2,0.5*p);Beep(n3,0.5*p);
	 Beep(n1,1.5*p);Sleep(0.5*p);Beep(l6,0.5*p);Beep(n2,0.5*p);Beep(n2,0.5*p);
	 Beep(n3,0.5*p);Beep(n1,1.5*p);Sleep(0.5*p);Beep(l6,0.5*p);Beep(n5,1.5*p);
	 Beep(n3,1.5*p);Beep(n4,0.5*p);Beep(n5,2*p);
	 printf("我祈祷拥有一颗透明的心灵\n");
	 Beep(n5,0.5*p);Beep(h3,0.5*p);Beep(h2,p);Beep(h1,p);Beep(h1,p);Beep(h1,0.5*p);
	 Beep(h1,0.5*p);Beep(n6,0.5*p);Beep(n5,0.5*p);Beep(h5,0.5*p);Beep(h6,p);
	 Beep(h6,1.5*p);
	 printf("和会流泪的眼睛\n");
	 Beep(h1,0.5*p);Beep(h2,0.5*p);Beep(h3,0.5*p);Beep(h5,p);Beep(h5,p);
	 Beep(h1,p);Beep(h2,2.5*p);
	 printf("给我再去相信的勇气\n");
	 Sleep(p);Beep(h1,0.5*p);Beep(h1,0.5*p);Beep(h1,0.5*p);Beep(h1,0.5*p);
	 Beep(n6,0.5*p);Beep(n5,0.5*p);Beep(h5,0.5*p);Beep(h6,p);Beep(h6,1.5*p);
	 printf("越过谎言去拥抱你\n"); 
	 Beep(h1,0.5*p);Beep(h2,0.5*p);Beep(h3,0.5*p);Beep(h5,p);Beep(h5,0.5*p);
	 Beep(h5,0.5*p);Beep(h3,1.5*p);Beep(h2,3*p);
	 printf("每当我找不到存在的意义\n");
	 Beep(h3,0.5*p);Beep(h2,p);Beep(h1,1.5*p);Beep(h1,p);Beep(h1,0.5*p);Beep(h1,0.5*p);
	 Beep(n6,0.5*p);Beep(n5,0.5*p);Beep(h5,0.5*p);Beep(h6,p);Beep(h6,p);
	 printf("每当我迷失在黑夜里\n");
	 Beep(h1,0.5*p);Beep(h1,0.5*p);Beep(h2,0.5*p);Beep(h3,0.5*p);Beep(h5,p);
	 Beep(h5,0.5*p);Beep(h5,0.5*p);Beep(h1,p);Beep(h2,3*p);
	 printf("哦  夜空中最亮的星\n");
	 Sleep(0.5*p);Beep(h2,0.5*p);Beep(h3,0.5*p);Beep(h1,1.5*p);
	 Beep(h1,0.5*p);Beep(h1,0.5*p);Beep(h1,1.5*p);Beep(n6,0.5*p);Beep(h5,0.5*p);
	 Beep(h6,p);Beep(h6,1.5*p);
	 printf("请指引我靠近你\n"); 
	 Beep(h1,0.5*p);Beep(h2,0.5*p);Beep(h3,0.5*p);Beep(h5,p);Beep(h5,1.5*p);
	 Beep(h3,p);Beep(h2,3*p);
	 
	 Sleep(p);Beep(h1,p);Beep(h2,p);Beep(h3,p);
	 Beep(h1,p);Beep(h2,p);Beep(h3,p);Beep(h5,p);
	 Sleep(p);Beep(h1,p);Beep(h2,p);Beep(h3,p);
	 Beep(h1,p);Beep(h2,p);Beep(h3,p);Beep(h5,p);
	 
	 printf("夜空中最亮的星 是否知道\n");
	 Beep(n3,0.5*p);Beep(n2,0.5*p);Beep(n3,0.5*p);Beep(n2,0.5*p);Beep(n3,0.5*p);
	 Beep(n5,0.5*p);Beep(n5,3*p);
	 Sleep(0.5*p);Beep(l5,0.5*p);Beep(n1,1.5*p);Beep(n2,1.5*p);Beep(n1,3*p);
	 printf("曾与我同行的身影 如今在哪里\n");
	 Sleep(0.5*p);Beep(n1,0.5*p);Beep(n1,0.5*p);Beep(n2,0.5*p);Beep(n3,0.5*p);
	 Beep(n1,1.5*p);Sleep(0.5*p);Beep(l6,0.5*p);Beep(n1,0.5*p);Beep(n2,0.5*p);
	 Beep(n3,0.5*p);Beep(n1,1.5*p);Sleep(0.5*p);Beep(l6,0.5*p);Beep(n2,1.5*p);
	 Beep(n3,2.5*p);
	 printf("哦  夜空中最亮的星 是否在意\n");
	 Sleep(3.5*p);Beep(l5,0.5*p);Beep(n3,0.5*p);Beep(n2,0.5*p);Beep(n3,0.5*p);
	 Beep(n2,0.5*p);Beep(n3,0.5*p);Beep(n5,0.5*p);Beep(n5,3*p); 
	 Sleep(0.5*p);Beep(l5,0.5*p);Beep(n1,1.5*p);Beep(n2,1.5*p);Beep(n1,3*p);
	 printf("是等太阳升起 还是意外先来临\n");
	 Beep(n1,0.5*p);Beep(n1,0.5*p);Beep(n2,0.5*p);Beep(n2,0.5*p);Beep(n3,0.5*p);
	 Beep(n1,1.5*p);
	 Sleep(0.5*p);Beep(l6,0.5*p);Beep(n2,0.5*p);Beep(n2,0.5*p);Beep(n3,0.5*p);
	 Beep(n1,1.5*p);Sleep(0.5*p);Beep(n5,0.5*p);Beep(n3,3*p);Beep(n3,0.5*p);
	 Beep(n4,0.5*p);Beep(n5,2*p);
	 printf("我宁愿所有的痛苦都留在心里\n");
	 Beep(n5,0.5*p);Beep(h3,0.5*p);Beep(h2,p);Beep(h1,p);Beep(h1,p);Beep(h1,0.5*p);
	 Beep(h1,0.5*p);Beep(n6,0.5*p);Beep(n5,0.5*p);Beep(h5,0.5*p);Beep(h6,p);
	 Beep(h6,p);
	 printf("也不愿忘记你的眼睛\n");
	 Beep(h1,0.5*p);Beep(h1,0.5*p);Beep(h2,0.5*p);Beep(h3,0.5*p);Beep(h5,p);
	 Beep(h5,0.5*p);Beep(h5,0.5*p);Beep(h1,p);Beep(h2,3*p);
	 printf("给我再去相信的勇气\n");
	 Sleep(p);Beep(h1,0.5*p);Beep(h1,0.5*p);Beep(h1,0.5*p);Beep(h1,0.5*p);
	 Beep(n6,0.5*p);Beep(n5,0.5*p);Beep(h5,0.5*p);Beep(h6,p);Beep(h6,1.5*p);
	 printf("越过谎言去拥抱你\n");
	 Beep(h1,0.5*p);Beep(h2,0.5*p);Beep(h3,0.5*p);Beep(h5,p);Beep(h5,0.5*p);
	 Beep(h5,0.5*p);Beep(h3,1.5*p);Beep(h2,3*p);
	 printf("每当我找不到存在的意义\n");
	 Beep(h3,0.5*p);Beep(h2,p);Beep(h1,1.5*p);Beep(h1,p);Beep(h1,0.5*p);
	 Beep(h1,0.5*p);Beep(n6,0.5*p);Beep(n5,0.5*p);Beep(h5,0.5*p);Beep(h6,p);
	 Beep(h6,p);
	 printf("每当我迷失在黑夜里\n");
	 Beep(h1,0.5*p);Beep(h1,0.5*p);Beep(h2,0.5*p);Beep(h3,0.5*p);Beep(h5,p);
	 Beep(h5,0.5*p);Beep(h5,0.5*p);Beep(h1,p);Beep(h2,3*p);
	 printf("哦  夜空中最亮的星 哦 请照亮我前行\n");
	 Sleep(0.5*p);Beep(h2,0.5*p);Beep(h3,0.5*p);Beep(h1,1.5*p);
	 Beep(h1,0.5*p);Beep(h1,0.5*p);Beep(h1,1.5*p);Beep(n6,0.5*p);Beep(h5,0.5*p);
	 Beep(h6,p);Beep(h6,1.5*p);
	 Beep(h1,0.5*p);Beep(h2,0.5*p);Beep(h3,0.5*p);Beep(h5,p);Beep(h5,1.5*p);
	 Beep(h3,p);Beep(h2,2.5*p);
	 
	 Beep(h5,p);Beep(h1,p);Beep(h3,p);Beep(h6,0.5*p);Beep(h5,0.5*p);
	 Beep(h5,3*p);Beep(h4,0.5*p);Beep(h3,0.5*p);
	 Beep(h4,3*p);Beep(h5,p);
	 Beep(h2,3*p);
	 Beep(h1,p);Beep(n7,p);Beep(h1,p);Beep(n3,p);
	 Beep(n6,3*p);Beep(n4,0.5*p);Beep(n3,0.5*p);
	 Beep(n4,3*p);
	 Beep(n5,2*p);
	 
	 printf("我祈祷拥有一颗透明的心灵\n");
	 Beep(n5,0.5*p);Beep(h3,0.5*p);Beep(h2,p);Beep(h1,p);Beep(h1,p);Beep(h1,0.5*p);
	 Beep(h1,0.5*p);Beep(n6,0.5*p);Beep(n5,0.5*p);Beep(h5,0.5*p);Beep(h6,p);
	 Beep(h6,1.5*p);
	 printf("和会流泪的眼睛\n");
	 Beep(h1,0.5*p);Beep(h2,0.5*p);Beep(h3,0.5*p);Beep(h5,p);Beep(h5,p);Beep(h1,p);
	 Beep(h2,2.5*p);Beep(h1,2*p);
	 printf("给我再去相信的勇气\n");
	 Sleep(p);Beep(h1,0.5*p);Beep(h1,0.5*p);Beep(h1,0.5*p);Beep(h1,0.5*p);
	 Beep(n6,0.5*p);Beep(n5,0.5*p);Beep(h5,0.5*p);Beep(h6,p);Beep(h6,1.5*p);
	 printf("越过谎言去拥抱你\n");
	 Beep(h1,0.5*p);Beep(h2,0.5*p);Beep(h3,0.5*p);Beep(h5,p);Beep(h5,0.5*p);
	 Beep(h5,0.5*p);Beep(h3,p);Beep(h2,3*p);
	 printf("每当我找不到存在的意义\n");
	 Beep(h3,0.5*p);Beep(h2,p);Beep(h1,1.5*p);Beep(h1,p);Beep(h1,0.5*p);
	 Beep(h1,0.5*p);Beep(n6,0.5*p);Beep(n5,0.5*p);Beep(h5,0.5*p);
	 Beep(h6,p);Beep(h6,p);
	 printf("每当我迷失在黑夜里\n");
	 Beep(h1,0.5*p);Beep(h1,0.5*p);Beep(h2,0.5*p);Beep(h3,0.5*p);Beep(h5,p);
	 Beep(h5,0.5*p);Beep(h5,0.5*p);Beep(h1,p);Beep(h2,3*p);
	 printf("哦  夜空中最亮的星\n");
	 Sleep(0.5*p);Beep(h2,0.5*p);Beep(h3,0.5*p);Beep(h1,1.5*p);
	 Beep(h1,0.5*p);Beep(h1,0.5*p);Beep(h1,1.5*p);Beep(n6,0.5*p);Beep(h5,0.5*p);
	 Beep(h6,p);Beep(h6,1.5*p);
	 printf("哦请照亮我前行\n");
	 Beep(h1,p);
	 Beep(h3,0.5*p);Beep(h5,p);Beep(h5,0.5*p);Beep(h5,p);Beep(h3,p);Beep(h2,3*p);
	 Sleep(10*p);
	 printf("夜空中最亮的星 能否听清\n");
	 Beep(n3,0.5*p);Beep(n2,0.5*p);Beep(n3,0.5*p);Beep(n2,0.5*p);Beep(n3,0.5*p);
	 Beep(n5,0.5*p);Beep(n5,3*p);
	 Sleep(0.5*p);Beep(l5,0.5*p);Beep(n1,1.5*p);Beep(n2,1.5*p);Beep(n1,2.5*p);
	 printf("那仰望的人 心底的孤独和叹息");
	 Sleep(0.5*p);Beep(n1,0.5*p);Beep(n1,0.5*p);Beep(n2,0.5*p);Beep(n3,0.5*p);
	 Beep(n1,1.5*p);
	 Sleep(0.5*p);Beep(l6,0.5*p);Beep(n1,0.5*p);Beep(n2,0.5*p);Beep(n3,0.5*p);
	 Beep(n1,1.5*p);Sleep(0.5*p);Beep(l6,0.5*p);Beep(n2,1.5*p);Beep(n3,2.5*p);
	
	 Sleep(5000);
}
main(){
	jg();
	main(); 
} 

  • 2
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值