赞
踩
1 #include
2 #include
3 #define qdo 262
4 #define qre 294
5 #define qmi 330 //q前缀为低音,1后缀为高音,s前缀为半音阶
6 #define qfa 349
7 #define qso 392
8 #define qla 440
9 #define qsi 494
10 #define do 523
11 #define re 578
12 #define mi 659
13 #define fa 698
14 #define so 784
15 #define la 880
16 #define si 988
17 #define do1 1046
18 #define re1 1175
19 #define mi1 1318
20 #define fa1 1480
21 #define so1 1568
22 #define la1 1760
23 #define si1 1976
24 #define sqdo 277
25 #define sqre 311
26 #define sqfa 370
27 #define sqso 415
28 #define sqla 466
29 #define sdo 554
30 #define sre 622
31 #define sfa 740
32 #define sso 831
33 #define sla 932
34 #define sdo1 1046
35 #define sre1 1245
36 #define sfa1 1480
37 #define sso1 1661
38 #define sla1 1865
39
40 intmain()41 {42 int pai=400,ban=200;43 int ting=128;44
45 Sleep(1000);46
47 Beep(la,ban);48 Beep(si,ban);49 Sleep(ting);50
51 Beep(do1,pai+ban);52 Beep(si,ban);53 Sleep(ting);54 Beep(do1,pai);55 Sleep(ting);56 Beep(mi1,pai);57 Sleep(ting);58
59 Beep(si,3*pai);60 Sleep(ting);61
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。