include
include <windows.h>
include <mmsystem.h>
#pragma comment(lib. "Winmm.lib")
int main()
{
PlaySound(TEXT("背景音乐.wav"),NULL,SND_FILENAME | SND_ASYNC | SND_LOOP);
printf("Hello world!\n");
Sleep(10000);
return 0;
}
一直叮叮的响就是没有音乐效果!