step01-1
#include <windows.h>
int main()
{
PlaySound("badbadbad.wav",NULL, SND_SYNC);
}
現在是一個可以播放聲音的程式碼
要在setting 裏面的 compiler 的link setting add 一個咒語 winmmm
step01-2
#include <windows.h>
#include <stdio.h>
int main()
{
printf("現在在PlaySOund()前\n");
PlaySound("07012163.wav",NULL,SND_ASYNC);
printf("現在在PlaySOund()後\n");
int N;
scanf("%d", &N);
}
step01-3
把他改成可以用mp3來播放




沒有留言:
張貼留言