烦闷的时候,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; }