I wrote a windows console application that receives binary data from a third party provider.
For Debug and logging purposes, I display the binary data on the output (the console).
Unfortunately when the character 7 is displayed it triggers a beep.
Here is a code that can trigger it:
int main(int argc, char** argv)
{
char c = 7;
std::cout << c;
}
My question is simple, is there a way to disable the beeps ?
Thanks
You could unplug the beeper in your computer.
If that is not an option:
If you have a method debug(String s) that outputs the string s, you could replace character 7 by something else to avoid the beep.
Another way would be to output the text in hexadecimal form.