c++ playsound 播放wav音乐
#include"stdafx.h"
#include <windows.h>
#include <tlhelp32.h>
#include <tchar.h>
#include <stdio.h>
#include <iostream>
#include <string>
#include<mmsystem.h>
#pragma comment(lib, "WINMM.LIB")
using namespace std;
int main()
{
PlaySound(TEXT("C:\\Users\\Amazing\\Desktop/bombpl.wav"), 0, SND_FILENAME);
return 0;
}