Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why do I hear a beep on this program? [duplicate]

Tags:

c++

I saw this char szPrivateKey[] definition on a source when I was reading so I went to check it out what it was, strangely this makes a sound when the program is run. Is there an easter egg in here or something? (compiled using visual studio 2003/ windows)

int _tmain(int argc, _TCHAR* argv[])
{
    const unsigned char szPrivateKey[] = {
    0x30 ,0x82 ,0x04 ,0xBB ,0x02 ,0x01 ,0x00 ,0x30 ,0x0D ,0x06 ,0x09 ,0x2A ,0x86 ,0x48 ,0x86 ,0xF7 ,
    0x0D ,0x01 ,0x01 ,0x01 ,0x05 ,0x00 ,0x04 ,0x82 ,0x04 ,0xA5 ,0x30 ,0x82 ,0x04 ,0xA1 ,0x02 ,0x01 ,
    0x00 ,0x02 ,0x82 ,0x01 ,0x01 ,0x00 ,0x87 ,0x1F ,0xEC ,0xFD ,0xAF ,0xD2 ,0x2F ,0xAA ,0x4E ,0xC2 ,
    0xAD ,0x5A ,0x4C ,0x3A ,0x7A ,0x81 ,0x9E ,0xBA ,0x28 ,0x6A ,0x84 ,0xE9 ,0xB7 ,0xF9 ,0x36 ,0x87 ,
    0x56 ,0x16 ,0xC5 ,0xA4 ,0x1D ,0x11 ,0x67 ,0x12 ,0x87 ,0x81 ,0xF5 ,0xFA ,0xF6 ,0x01 ,0xE7 ,0x55 ,
    0x83 ,0x4A ,0xAC ,0x40 ,0x4D ,0x2C ,0x90 ,0x62 ,0x77 ,0xFC ,0x73 ,0xF9 ,0x5E ,0x7F ,0x67 ,0x8C ,
    0xA7 ,0x94 ,0x32 ,0x28 ,0xDD ,0xEF ,0x91 ,0xE5 ,0x94 ,0xD6 ,0x5C ,0xB5 ,0x63 ,0xC4 ,0x76 ,0x2D ,
    0xFF ,0x03 ,0x75 ,0x55 ,0x85 ,0x60 ,0x56 ,0x44 ,0x37 ,0x18 ,0x08 ,0xE7 ,0x0A ,0x90 ,0x74 ,0xA0 ,
    0x9E ,0x82 ,0x4F ,0x56 ,0x4C ,0xD9 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,0x3B ,0xC6 ,0x85 ,
    0x92 ,0x88 ,0xAC ,0xC8 ,0xAC ,0x9F ,0x18 ,0x74 ,0x9D ,0x45 ,0xB4 ,0x7B ,0x13 ,0xAB ,0x78 ,0x8D ,
    0x8B ,0xB5 ,0x9E ,0x9E ,0xD2 ,0xD7 ,0xF2 ,0x84 ,0x34 ,0xFB ,0x08 ,0xB2 ,0x23 ,0xC7 ,0x0B ,0xF0 ,
    0xA9 ,0xCA ,0x17 ,0x1A ,0xA2 ,0x6D ,0x63 ,0xD3 ,0x90 ,0xEF ,0xD1 ,0x62 ,0xE6 ,0x46 ,0x25 ,0x6D ,
    0x6D ,0x23 ,0x3B ,0xB0 ,0x65 ,0xEA ,0xE2 ,0x22 ,0x24 ,0xC9 ,0x09 ,0x1B ,0x0D ,0x42 ,0x9D ,0x77 ,
    0xE1 ,0x63 ,0xB2 ,0x03 ,0x0D ,0x4A ,0xA2 ,0xFD ,0x2E ,0x2D ,0xCD ,0x4B ,0x9E ,0x63 ,0x91 ,0x0F ,
    0x42 ,0xC2 ,0x01 ,0x24 ,0x68 ,0x4C ,0xB5 ,0xA8 ,0x35 ,0xE3 ,0x31 ,0xE8 ,0x86 ,0x32 ,0xB1 ,0xA9 ,
    0x4F ,0xBE ,0x23 ,0x3A ,0x3C ,0x0A ,0x5D ,0x26 ,0xBE ,0xA7 ,0x5D ,0xC0 ,0x60 ,0x42 ,0x1D ,};


    for( int i =0; i<sizeof(szPrivateKey); i++ )
    {
        cout << szPrivateKey[i] << endl;
    }


    return 0;
}
like image 343
snoopy Avatar asked Jul 05 '13 23:07

snoopy


People also ask

What does it mean when your computer beeps?

The beeping, then, is a way to communicate a problem to you when the computer can't show a proper error on the screen. Follow the steps below to determine what computer problem the beep code is representing.

Why do I get phone calls that just Beep?

Here’s why you get phone calls that just beep and their meaning: Sometimes you answer the phone and just hear a beep, and that is almost always the result of a computer system. The computer is trying to connect you to another phone line, and for any number of reasons, that connection failed.

How long does it take to troubleshoot a beeping sound?

Solving that problem that you identify is another task entirely and could take a few minutes to hours, depending on what the problem ends up being. Power on the computer, or restart it if it's already on. Listen very carefully to the beep codes that sound when the computer begins to boot. Restart your computer if you need to hear the beeping again.

How do I disable the beep on my Beep function?

The Beepfunction was written specifically to emit a beep on that piece of hardware. On these older systems, muting and volume controls have no effect on Beep; you would still hear the tone. To silence the tone, you used the following commands: net stop beep sc config beep start= disabled


1 Answers

Character 0x07 is the ASCII bell character. Support varies, but sending it to a console generally results in a single beep noise.

like image 80
user2357112 supports Monica Avatar answered Oct 20 '22 00:10

user2357112 supports Monica