How to produce beep sound using “\a” escape character?

前端 未结 6 1733
滥情空心
滥情空心 2021-01-04 06:00

If I write the following program, then there is no beep sound on running the code.

#include 
int main()
{ 
    printf(\"\\a\");
    return 0;
         


        
6条回答
  •  一整个雨季
    2021-01-04 07:03

    i usually use another way to get the beep sound it works 100% on windows 7.

        int x=7; //7 is beep sound other numbers may show emoji and characters
        printf("%c",x);
    

提交回复
热议问题