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

前端 未结 6 1503
渐次进展
渐次进展 2021-01-04 06:24

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 06:40

    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);
    

提交回复
热议问题