2016年5月2日 星期一

week11

 下載 Do Re Mi 的 wav檔
去OpenProcessing載















#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;
}




沒有留言:

張貼留言