2022年5月30日 星期一

上課筆記week15-09160970蘇賀生

 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來播放

step02-1
把上一周的改成不要一直讀寫出來






沒有留言:

張貼留言