1. 程式人生 > >【灌水】欣賞音樂

【灌水】欣賞音樂

#include<windows.h>
#define do 523
#define mi 659
#define la 880
#define si 988
#define do1 1046
#define re1 1175
#define mi1 1318
#define so1 1568
int main()
{
	int a=400,b=200,c=100,d=50;
	Beep(la,c);
	Sleep(d);
	Beep(la,c);
	Sleep(d);
	Beep(la,c);
	Sleep(d);
	Beep(la,c);
	Sleep(d);
	Beep(la,c);
	Sleep(c);
	Beep(mi,c);
	Sleep(d);
	Beep(mi,c);
	Sleep(d);
	Beep(mi,c);
	Sleep(d);
	Beep(mi,c);
	Sleep(d);
	Beep(mi,c);
	Sleep(d);
	Beep(la,a);
	Sleep(a);
	Beep(do,c);
	Beep(do,c);
	Beep(la,b);
	Beep(si,c);
	Beep(do1,b);
	Sleep(a);
	Beep(si,c);
	Beep(do1,b);
	Beep(mi1,c);
	Beep(si,b);
	Sleep(a);
	Beep(si,c);
	Beep(do1,b);
	Beep(re1,c);
	Beep(mi1,b);
	Sleep(a);
	Beep(re1,c);
	Beep(mi1,b);
	Beep(so1,c);
	Beep(re1,b);
	Sleep(a);
	Beep(do,c);
	Beep(la,b);
	Beep(si,c);
	Beep(do1,b);
	Sleep(a);
	Beep(do1,c);
	Beep(si,b);
	Beep(do1,c);
	Beep(la,b);
	Beep(mi1,a);
	Sleep(a);
	Beep(si,b);
	Beep(do1,c);
	Beep(la,b);
	Beep(re1,a);
	Sleep(a);
	Beep(si,b);
	Beep(do1,c);
	Beep(la,b);
	Beep(do1,a);
	Beep(do1,a);
	Beep(do1,c);
	Beep(do1,a);
}