today, when I was working on some code, I came across a beep when printing a buffer to the screen. Here's a mysterious character that beeps: I don't know if you see this, but my computer beeps when I try to print it like this:
cout<<(char)7<<endl;
Another interesting topic is that the "sound signal" does not come from my onboard beeper, but from the headphones / speakers
Is it just my computer or is there something wrong with the cout function?
EDIT:
But then why printing this symbol creates a sound signal? Does this mean that I could send other such characters through the cout function to create different effects?
source
share