#include <stdio.h> #include <windows.h> #include <mmsystem.h> //需要引用Winmm.lib int main(void) { PlaySound("die.wav",NULL,SND_ALIAS|SND_ASYNC); while(1); return 0; }