make sounds (beep) with c++

前端 未结 12 662
暗喜
暗喜 2020-11-29 04:08

How to make the hardware beep sound with c++?

Thanks

12条回答
  •  余生分开走
    2020-11-29 04:21

    cout << "\a";
    

    In Xcode, After compiling, you have to run the executable by hand to hear the beep.

提交回复
热议问题