Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C++ Blank Throw Statement

Name: Anonymous 2006-01-15 12:26

Hi. This may seem like a newbie question, but its not.
See, I have NO IDEA how to catch a BLANK throw stement.

(e.g.)

try{   throw;   }
catch(?)// No idea what to put to catch the blank throw statement above
{}

Let's see if anyone can figure this out, eh?
Chears!

Name: Anonymous 2006-01-15 13:31

>>2
>>3
It doesn't work man! I tried it!


    try
    {
        throw 1;
    }
    catch(int)
    {
        putch('\a');
        throw;
    }
    catch(...)
    {
        putch('\a');
    }
}

Anyone smart enough to solve this intriguing piece of code?
Chears!

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List