[VC] 生日歌 源代码
#include <windows.h>
void main()
{
unsigned int FREQUENCY[]={392,392,440,392,523,494,
392,392,440,392,587,523,
392,392,784,659,523,494,440,
698,698,659,523,587,523};
unsigned int DELAY[]={375,125,500,500,500,1000,
375,125,500,500,500,1000,
375,125,500,500,500,500,1000,
375,125,500,500,500,1000};
int i;
for (i=0;i<25;i++)
{
Beep(FREQUENCY[i],DELAY[i]);
}
}