今天作業好簡單
就用四行程式碼
把MP3檔播放出來
雖然不是電腦圖學的領域
但也滿不錯~
#include <iostream>
#include <GL/glut.h>
#include "CMP3_MCI.h"
CMP3_MCI myMP3;
using namespace std;
int main()
{
myMP3.Load("Try.mp3");
myMP3.Play();
cout << "Hellow world!" << endl;
int a;
cin>> a;
return 0;
}
沒有留言:
張貼留言