阅读背景:

c语言播放音乐

来源:互联网 

音乐文件必须是WAV格式

#include <stdio.h>  
#include <stdlib.h>
#include<windows.h>
#include<MMSystem.h>
#pragma comment(lib,"winmm.lib")
void play()
{
	PlaySound("D://wav//陈小春 - 战无不胜.WAV",NULL,SND_FILENAME | SND_ASYNC);
}
int main()
{
	play();
	system("pause");
	return 0;
}
#include <stdio.h>  
#include



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: