博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
OIer同样是音乐家
阅读量:5986 次
发布时间:2019-06-20

本文共 12220 字,大约阅读时间需要 40 分钟。

 烦闷的时候,shenben为大家准备了2首歌(不用耳机也能听哦)

只需把代码复制到dev-c++的编辑器上,轻按F11,然后聆听OIer的音乐……

千本樱 曲谱

#include 
#include
using namespace std;int do1=262;int re1=294;int mi1=330;int fa1=349;int so1=392;int la1=440;int si1=494;int do2=523;int re2=578;int mi2=659;int fa2=698;int so2=784;int la2=880;int si2=988;int do3=1046;int re3=1175;int mi3=1318;int fa3=1400;int so3=1568;int la3=1760;int si3=1976;int do4=2090;int sdo1=277;int sre1=311;int sfa1=370;int sso1=415;int sla1=466;int sdo2=554;int sre2=622;int sfa2=740;int sso2=831;int sla2=932;int sdo3=1046;int sre3=1245;int sfa3=1480;int sso3=1661;int sla3=1865;double time=0.5;int f16=200*time;int f8=400*time;int f4=800*time;int f2=1600*time;int f1=3200*time;int main(){ Beep(re2,f8); Beep(re2,f4); Beep(do2,f8); Beep(re2,f8); Beep(re2,f4); Beep(do2,f8); Beep(re2,f8); Beep(re2,f4); Beep(do2,f8); Beep(re2,f4); Beep(fa2,f4); Beep(re2,f8); Beep(re2,f4); Beep(do2,f8); Beep(re2,f8); Beep(re2,f4); Beep(do2,f8); Beep(re2,f4); Beep(fa2,f4); Beep(so2,f4); Beep(la2,f4); Beep(so2,f8); Beep(la2,f8); Beep(re2,f16); Beep(do2,f16); Beep(re2,f16); Beep(do2,f16); Beep(so2,f8); Beep(la2,f8); Beep(re2,f16); Beep(do2,f16); Beep(re2,f16); Beep(do2,f16); Beep(so2,f8); Beep(la2,f8); Beep(re2,f16); Beep(do2,f16); Beep(re2,f16); Beep(do2,f16); Beep(fa2,f8); Beep(mi2,f8); Beep(re2,f8); Beep(do2,f8); Beep(so2,f8); Beep(la2,f8); Beep(re2,f16); Beep(do2,f16); Beep(re2,f16); Beep(do2,f16); Beep(so2,f8); Beep(la2,f8); Beep(re2,f16); Beep(do2,f16); Beep(re2,f16); Beep(do2,f16); Beep(so2,f8); Beep(la2,f8); Beep(do3,f8); Beep(fa3,f8); Beep(mi3,f16); Beep(fa3,f16); Beep(mi3,f16); Beep(re3,f16); Beep(do3,f8); Beep(la2,f8); Beep(so2,f8); Beep(la2,f8); Beep(re2,f16); Beep(do2,f16); Beep(re2,f16); Beep(do2,f16); Beep(so2,f8); Beep(la2,f8); Beep(re2,f16); Beep(do2,f16); Beep(re2,f16); Beep(do2,f16); Beep(so2,f8); Beep(la2,f8); Beep(re2,f16); Beep(do2,f16); Beep(re2,f16); Beep(do2,f16); Beep(fa2,f8); Beep(mi2,f8); Beep(re2,f8); Beep(do2,f8); Beep(do2,f16); Beep(re2,f16); Beep(so2,f16); Beep(la2,f16); Beep(do3,f16); Beep(la2,f16); Beep(so2,f16); Beep(mi2,f16); Beep(re2,f8); Beep(fa2,f8); Beep(so2,f8); Beep(la2,f8); Beep(re2,f8); Beep(re2,f4); Beep(do2,f8); Beep(re2,f2); Beep(la2,f4); Beep(la2,f8+f16); Beep(so2,f16); Beep(la2,f8); Beep(do3,f8); Beep(do3,f8); Beep(re3,f8); Beep(la2,f4); Beep(la2,f8+f16); Beep(so2,f16); Beep(la2,f8); Beep(so2,f8); Beep(mi2,f8); Beep(so2,f8); Beep(la2,f4); Beep(la2,f8+f16); Beep(so2,f16); Beep(la2,f8); Beep(do3,f8); Beep(re3,f8); Beep(mi3,f8); Beep(mi3,f4); Beep(re3,f4); Beep(do3,f4); Beep(la2,f4); Beep(la2,f8+f16); Beep(la2,f16); Beep(la2,f8); Beep(so2,f8); Beep(la2,f8); Beep(do3,f8); Beep(do3,f8); Beep(re3,f8); Beep(la2,f8+f16); Beep(la2,f16); Beep(la2,f8); Beep(so2,f8); Beep(la2,f8); Beep(so2,f8); Beep(mi2,f8); Beep(so2,f8); Beep(la2,f8+f16); Beep(la2,f16); Beep(la2,f8); Beep(so2,f8); Beep(la2,f8); Beep(do3,f8); Beep(re3,f8); Beep(mi3,f8); Beep(mi3,f4); Beep(re3,f4); Beep(do3,f4); Beep(la2,f4); Beep(do3,f4); Beep(si2,f4); Beep(la2,f4); Beep(so2,f4); Beep(so2,f8); Beep(so2,f16); Beep(la2,f16); Beep(mi2,f8); Beep(re2,f8); Beep(mi2,f2); Beep(mi2,f8); Beep(so2,f8); Beep(la2,f4); Beep(re3,f4); Beep(si2,f4); Beep(do3,f8); Beep(do3,f8); Beep(si2,f8); Beep(so2,f8); Beep(la2,f2); Beep(do3,f4); Beep(si2,f4); Beep(la2,f4); Beep(so2,f4); Beep(so2,f8); Beep(so2,f16); Beep(la2,f16); Beep(mi2,f8); Beep(re2,f8); Beep(mi2,f8); Sleep(f8); Beep(mi2,f8); Beep(so2,f8); Beep(la2,f8); Beep(la2,f8); Sleep(f8); Beep(la2,f8); Beep(do3,f4); Beep(re3,f4); Beep(si2,f4+f2); Beep(la2,f8);//6899++ Beep(do3,f8); Beep(re3,f8); Beep(re3,f4); Beep(mi3,f8); Beep(mi3,f4+f8); Beep(mi3,f8);//+* /98+ Beep(so3,f8); Beep(la3,f8); Beep(re3,f8); Beep(do3,f8); Beep(mi3,f4); Beep(la2,f8);//6899++ Beep(do3,f8); Beep(re3,f8); Beep(re3,f4); Beep(mi3,f8); Beep(mi3,f4+f8); Beep(mi3,f8);//+-+988 Beep(fa3,f8); Beep(mi3,f8); Beep(re3,f8); Beep(do3,f8); Beep(do3,f4); Beep(la2,f8);//6899++ Beep(do3,f8); Beep(re3,f8); Beep(re3,f4); Beep(mi3,f8); Beep(mi3,f4+f8); Beep(mi3,f8);//+* /98+ Beep(so3,f8); Beep(la3,f8); Beep(re3,f8); Beep(do3,f8); Beep(mi3,f4); Beep(la2,f8);//68-+98 Beep(do3,f8); Beep(fa3,f4); Beep(mi3,f4); Beep(re3,f4); Beep(do3,f4); Beep(re3,f8);//9+756 Beep(mi3,f8); Beep(si2,f8); Beep(so2,f8); Beep(la2,f4); Beep(la2,f8);//6899++ Beep(do3,f8); Beep(re3,f8); Beep(re3,f4); Beep(mi3,f8); Beep(mi3,f4+f8); Beep(mi3,f8);//+* /98+ Beep(so3,f8); Beep(la3,f8); Beep(re3,f8); Beep(do3,f8); Beep(mi3,f4); Beep(la2,f8);//6899++ Beep(do3,f8); Beep(re3,f8); Beep(re3,f4); Beep(mi3,f8); Beep(mi3,f4+f8); Beep(mi3,f8);//+-+988 Beep(fa3,f8); Beep(mi3,f8); Beep(re3,f8); Beep(do3,f8); Beep(do3,f4); Beep(la2,f8);//6899++ Beep(do3,f8); Beep(re3,f8); Beep(re3,f4); Beep(mi3,f8); Beep(mi3,f4+f8); Beep(mi3,f8);//+* /98+ Beep(so3,f8); Beep(la3,f8); Beep(re3,f8); Beep(do3,f8); Beep(mi3,f4); Beep(la2,f8);//68-+98 Beep(do3,f8); Beep(fa3,f4); Beep(mi3,f4); Beep(re3,f4); Beep(do3,f4); Beep(mi3,f8);//+9+* / Beep(re3,f8); Beep(mi3,f8); Beep(so3,f8); Beep(la3,f2); Beep(so2,f8); Beep(la2,f8); Beep(re2,f16); Beep(do2,f16); Beep(re2,f16); Beep(do2,f16); Beep(so2,f8); Beep(la2,f8); Beep(re2,f16); Beep(do2,f16); Beep(re2,f16); Beep(do2,f16); Beep(so2,f8); Beep(la2,f8); Beep(re2,f16); Beep(do2,f16); Beep(re2,f16); Beep(do2,f16); Beep(fa2,f8); Beep(mi2,f8); Beep(re2,f8); Beep(do2,f8); Beep(so2,f8); Beep(la2,f8); Beep(re2,f16); Beep(do2,f16); Beep(re2,f16); Beep(do2,f16); Beep(so2,f8); Beep(la2,f8); Beep(re2,f16); Beep(do2,f16); Beep(re2,f16); Beep(do2,f16); Beep(so2,f8); Beep(la2,f8); Beep(do3,f8); Beep(fa3,f8); Beep(mi3,f16); Beep(fa3,f16); Beep(mi3,f16); Beep(re3,f16); Beep(do3,f8); Beep(la2,f8); Beep(so2,f8); Beep(la2,f8); Beep(re2,f16); Beep(do2,f16); Beep(re2,f16); Beep(do2,f16); Beep(so2,f8); Beep(la2,f8); Beep(re2,f16); Beep(do2,f16); Beep(re2,f16); Beep(do2,f16); Beep(so2,f8); Beep(la2,f8); Beep(re2,f16); Beep(do2,f16); Beep(re2,f16); Beep(do2,f16); Beep(fa2,f8); Beep(mi2,f8); Beep(re2,f8); Beep(do2,f8); Beep(do2,f16); Beep(re2,f16); Beep(so2,f16); Beep(la2,f16); Beep(do3,f16); Beep(la2,f16); Beep(so2,f16); Beep(mi2,f16); Beep(re2,f8); Beep(fa2,f8); Beep(so2,f8); Beep(la2,f8); Beep(re2,f8); Beep(re2,f4); Beep(do2,f8); Beep(re2,f2); Beep(la2,f8); Beep(la2,f4); Beep(so2,f8); Beep(la2,f2);}

 

令人怀念的车万之血

#include 
#include
using namespace std;const int do1=262; int re1=294; int mi1=330; int fa1=349; int so1=392; int la1=440; int si1=494; int do2=523; int re2=578; int mi2=659; int fa2=698; int so2=784; int la2=880; int si2=988; int do3=1046; int re3=1175; int mi3=1318; int fa3=1400; int so3=1568; int la3=1760; int si3=1976; int do4=2090; int sdo1=277; int sre1=311; int sfa1=370; int sso1=415; int sla1=466; int sdo2=554; int sre2=622; int sfa2=740; int sso2=831; int sla2=932; int sdo3=1046; int sre3=1245; int sfa3=1480; int sso3=1661; int sla3=1865;int main(){ Beep(la2,300);Beep(mi3,100);Beep(re3,100);Beep(mi3,300);Beep(la2,300);Beep(la2,300);Beep(mi3,100);Beep(re3,100);Beep(mi3,300);Beep(la2,300);Beep(la2,300);Beep(mi3,100);Beep(re3,100);Beep(mi3,300);Beep(la2,300); Beep(sso2,300);Beep(la2,300);Beep(si2,300);Beep(re3,300); Beep(la2,300);Beep(mi3,100);Beep(re3,100);Beep(mi3,300);Beep(la2,300);Beep(la2,300);Beep(mi3,100);Beep(re3,100);Beep(mi3,300);Beep(la2,300);Beep(la2,300);Beep(mi3,100);Beep(re3,100);Beep(mi3,300);Beep(la2,300); Beep(sso2,600); Beep(mi3,300);Beep(do4,100);Beep(si3,100);Beep(do4,100);Sleep(200);Beep(mi3,300);Beep(mi3,300);Beep(do4,100);Beep(si3,100);Beep(do4,100);Sleep(200);Beep(mi3,300);Beep(mi3,300);Beep(do4,100);Beep(si3,100);Beep(do4,100);Sleep(200);Beep(mi3,300); Beep(re3,300);Beep(mi3,300);Beep(sso3,300);Beep(si3,300); Beep(mi3,300);Beep(do4,100);Beep(si3,100);Beep(do4,100);Sleep(200);Beep(mi3,300);Beep(mi3,300);Beep(do4,100);Beep(si3,100);Beep(do4,100);Sleep(200);Beep(mi3,300);Beep(mi3,300);Beep(do4,100);Beep(si3,100);Beep(do4,100);Sleep(200);Beep(mi3,300); Beep(sso2,600);Beep(si2,100);Beep(do3,100);Beep(re3,100);Beep(so3,100);Beep(re3,100);Beep(si2,100); Beep(la2,900);Beep(mi3,600);Beep(re3,300);Beep(mi3,300);Beep(la2,900);Beep(mi3,600);Beep(re3,300);Beep(mi3,300);Beep(la2,900); Beep(mi3,450);Beep(re3,450);Beep(mi3,450);Beep(so3,150); Beep(la2,900);Beep(mi3,600);Beep(re3,300);Beep(mi3,300);Beep(la2,900);Beep(mi3,600);Beep(re3,300);Beep(mi3,300);Beep(la2,900); Beep(mi3,450);Beep(mi3,450);Beep(mi3,450);Beep(re3,150); Beep(fa3,600);Beep(fa3,300);Beep(so3,450);Beep(fa3,300);Beep(mi3,900);Beep(re3,450);Beep(do3,450);Beep(re3,600);Beep(mi3,600);Beep(si2,450);Beep(do3,600);Beep(la2,600);Beep(mi3,450);Beep(fa3,900);Beep(fa3,300);Beep(so3,450);Beep(fa3,300);Beep(mi3,600);Beep(la3,600);Beep(mi3,600);Beep(fa3,600);Beep(so3,600);Beep(la3,600);Beep(si3,600);Beep(do4,900); Beep(do4,450);Beep(do4,300);Beep(si3,150);Beep(do4,150);Beep(mi3,450);Beep(do4,300);Beep(si3,150);Beep(do4,150);Beep(do4,300);Beep(do4,300);Beep(si3,300);Beep(do4,300);Beep(mi3,600);Beep(fa3,600);Beep(fa3,300);Beep(mi3,300);Beep(re3,150);Beep(mi3,300);Beep(do3,300);Beep(la2,300);Beep(do3,300);Beep(re3,450);Beep(re3,300);Beep(mi3,300);Beep(re3,300);Beep(si2,150);Beep(sso3,150);Beep(la3,150);Beep(re3,150);Beep(do3,150);Beep(si2,150); Beep(fa3,600);Beep(fa3,300);Beep(so3,450);Beep(fa3,300);Beep(mi3,900);Beep(re3,450);Beep(do3,450);Beep(re3,600);Beep(mi3,600);Beep(si2,450);Beep(do3,600);Beep(la2,600);Beep(mi3,450);Beep(fa3,900);Beep(fa3,300);Beep(so3,450);Beep(fa3,300);Beep(mi3,600);Beep(la3,600);Beep(mi3,600);Beep(fa3,600);Beep(so3,600);Beep(la3,600);Beep(si3,600);Beep(do4,900); Beep(do4,450);Beep(do4,300);Beep(si3,150);Beep(do4,150);Beep(mi3,450);Beep(do4,300);Beep(si3,150);Beep(do4,150);Beep(do4,300);Beep(do4,300);Beep(si3,300);Beep(do4,300);Beep(mi3,600);Beep(fa3,600);Beep(fa3,300);Beep(mi3,300);Beep(re3,150);Beep(mi3,300);Beep(do3,300);Beep(la2,300);Beep(do3,300);Beep(re3,450);Beep(re3,300);Beep(mi3,300);Beep(re3,300);Beep(si2,150);Beep(sso3,150);Beep(la3,150);Beep(re3,150);Beep(do3,150);Beep(si2,150); Beep(la2,300);Beep(mi3,100);Beep(re3,100);Beep(mi3,300);Beep(la2,300);Beep(la2,300);Beep(mi3,100);Beep(re3,100);Beep(mi3,300);Beep(la2,300);Beep(la2,300);Beep(mi3,100);Beep(re3,100);Beep(mi3,300);Beep(la2,300); Beep(sso2,300);Beep(la2,300);Beep(si2,300);Beep(re3,300); Beep(la2,300);Beep(mi3,100);Beep(re3,100);Beep(mi3,300);Beep(la2,300);Beep(la2,300);Beep(mi3,100);Beep(re3,100);Beep(mi3,300);Beep(la2,300);Beep(la2,300);Beep(mi3,100);Beep(re3,100);Beep(mi3,300);Beep(la2,300); Beep(sso2,600); return 0; }

 

转载于:https://www.cnblogs.com/shenben/p/6368227.html

你可能感兴趣的文章
MySQL基础4
查看>>
什么是堡垒机?个人经验推荐优质堡垒机
查看>>
9月25日科技联播:科大讯飞发文称公司没有造假;刘强东案涉事女主微信内容曝光...
查看>>
ORACLE 配置event参数
查看>>
Vmware下安装配置HMC
查看>>
oracle11g数据库升级
查看>>
nodeJS搭建本地服务器
查看>>
UIActivityIndicatorView使用
查看>>
别让设备管理器泄露你的秘密
查看>>
结合django动态生成salt的pillar数据
查看>>
Windows Live Writer 的代码高亮插件
查看>>
Firefox问题小结
查看>>
Conversion to Dalvik format failed with error 1的又一种情形
查看>>
Citrix VDI实战攻略之八:测试验收
查看>>
windows下安装memcached
查看>>
Java读取properties文件的思考
查看>>
分秒必争域的时间同步问题[为企业部署Windows Server 2008系列十四]
查看>>
IronRuby:请教如何在DOS窗口正确显示UTF-8字符后执行bat文件呢?
查看>>
关于设置SQLPLUS提示符样式的方法
查看>>
厕所老鼠和粮仓老鼠
查看>>