1.代码 #include<windows.h> //API内置函数,实现对PlaySound的使用 #pragma comment(lib,"winmm.lib") int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance