(1)音樂音效
#include <iostream>
#include <windows.h>
#include <mmsystem.h>
using namespace std;
int main()
{
int a;
for (int i=0;i<10;i++){
cout << "Hello world!" << endl;
PlaySoundA("Do.wav",NULL, SND_ASYNC); ///音樂
cin>>a;
}
return 0;
}
咒語
winmm
把音檔放在資料夾裡
課堂作業2
(2)下載wav檔



沒有留言:
張貼留言