make sounds (beep) with c++

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

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

Thanks

12条回答
  •  渐次进展
    2020-11-29 04:46

    alternatively in c or c++ after including stdio.h

    char d=(char)(7);
    printf("%c\n",d);
    

    (char)7 is called the bell character.

提交回复
热议问题