Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006


Try-catch why not play a role? (Programming)

[code]#include "Stdio.h>;

Int main (int argc, char *argv[])
{
Try (
Int b = 0
Int c;

C = 9/b;
) Catch (. . . ) (
Printf ( "I 've got you!\n");
    }

Return 0
}[/code]

Compiler
[code]g++ -o Try-catch try-catch.cpp g -Wall -fexceptions[/code]
Operation. /try-catch, With the result
[color=red]Floating Point exception[/color]
Rather than
[color=green]I 'Ve got you![/color]

Which brothers to give pointers?

Try-catch why not play a role? (Programming)

This is C + +, not Java, anything you must do by yourself. that is established by the exceptional run-time yourself detecter must not just the OS which maintains the run-time enviroment. You abuse the "try-catch" statement. and should find some textbooks to clarify the concepts of Java you keep in mind once.

Try-catch why not play a role? (Programming)

The code is landlord cattle.
Let me put it this way a descendant understood.

Try-catch why not play a role? (Programming)

If you are interested, I could write an unusual category, SIGFPE catch, and then threw out floating unusual, and it will be your reality.

Try-catch why not play a role? (Programming)

Ah, the VC were misled!
VC can be used try to catch the runtime error. So Oujiu always think that this is the C + + standard. : Cry :

BTW : Actually, I have been Cer not JAVAer. C + + is not used more. Not how to read a complete book on C + +.

Try-catch why not play a role? (Programming)

My God 9/0 cruel



 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com