2017年5月9日 星期二

Week12 三個ㄌ 的 上課筆記

1.使用 CMP3_MCI.h 便可以輕鬆地將 MP3檔播放出來。

程式碼
#include <iostream>
#include "CMP3_MCI.h"///(1) 放在同一個程式碼專案的目錄中哦
CMP3_MCI myMP3;///(2) 宣告一個變數,叫 myMP3

using namespace std;
///在 main()函式裡面
int main()
{
    myMP3.Load("yukai.mp3"); /// "C:/dropbox/yukai.mp3"
    myMP3.Play();/// (4) Play the file

    int n;
    cin >> n;///
    cout << "Hello world!" << endl;
    return 0;
}//小心卡住
2.到fb下載檔案

+


沒有留言:

張貼留言