piano1.0.h头文件

今天,闲得无聊的我做了一个钢琴的代码,其中一部分过于繁琐,所以,我做了一个头文件\n;

以后钢琴小游戏都要安装它!!!

#include 
#include 
#include 
#include 
#include 
#include 

#define L1 Beep(262,300)
#define L2 Beep(294,300)
#define L3 Beep(330,300)
#define L4 Beep(349,300)
#define L5 Beep(392,300)
#define L6 Beep(440,300)
#define L7 Beep(493,300)

#define N1 Beep(532,300)
#define N2 Beep(588,300)
#define N3 Beep(660,300)
#define N4 Beep(698,300)
#define N5 Beep(784,300)
#define N6 Beep(880,300)
#define N7 Beep(988,300)

#define H1 Beep(1046,300)
#define H2 Beep(1175,300)
#define H3 Beep(1319,300)
#define H4 Beep(1397,300)
#define H5 Beep(1568,300)
#define H6 Beep(1760,300)
#define H7 Beep(1976,300)

#define qdo 262
#define qre 294
#define qmi 330
#define qfa 349
#define qso 392
#define qla 440
#define qsi 494
#define do 523
#define re 578
#define mi 659
#define fa 698
#define so 784
#define la 880
#define si 988
#define do1 1046
#define re1 1175
#define mi1 1318
#define fa1 1480
#define so1 1568
#define la1 1760
#define si1 1976
#define sqdo 277
#define sqre 311
#define sqfa 370
#define sqso 415
#define sqla 466
#define sdo 554
#define sre 622
#define sfa 740
#define sso 831
#define sla 932
#define sdo1 1046
#define sre1 1245
#define sfa1 1480
#define sso1 1661
#define sla1 1865

void color(int );

void tian();

void print();

int main();

好了,今天就普及到这,下次见。

你可能感兴趣的:(小游戏,头文件,gnu,c++)