C语言编译错误,应该是没链接到对应文件,有人教教嘛
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<windows.h>
#include<mmsystem.h>
#pragma comment(lib, "Winmm.lib")
void play_music_1()
{
mciSendString("open music1.mp3 alias mymusic", NULL, 0, NULL);
mciSendString("play mymusic from 0 repeat", NULL, 0, NULL);
}