Windows Beep() equivalent for Linux

前端 未结 6 795
我在风中等你
我在风中等你 2021-02-09 12:38

I am experimenting with Beep function on Windows:

#include 
...
Beep(frequency, duration);

The computer then beeps with some f

6条回答
  •  南旧
    南旧 (楼主)
    2021-02-09 13:14

    this site shows two ways:

    char beep[] = {7, ”};
    printf(“%c”, beep);
    

    and

    Beep(587,500);
    

提交回复
热议问题