按123會有do re mi的聲音
#include <windows.h>
int main()
{
PlaySoubd("C:\\Users\\Administrator\\Desktop\\do_re_mi\\do.wav",NULL,SND_SYNC);
PlaySoubd("C:\\Users\\Administrator\\Desktop\\do_re_mi\\do.wav",NULL,SND_SYNC);
PlaySoubd("C:\\Users\\Administrator\\Desktop\\do_re_mi\\do.wav",NULL,SND_SYNC);
PlaySoubd("C:\\Users\\Administrator\\Desktop\\do_re_mi\\RE.wav",NULL,SND_SYNC);
PlaySoubd("C:\\Users\\Administrator\\Desktop\\do_re_mi\\MI.wav",NULL,SND_SYNC);
}



沒有留言:
張貼留言