Try Catch statements

May 1, 2013 at 3:02pm
I am just wondering is there an equivalent to the java

try
{
}
catch(){}

in C++ ?

May 1, 2013 at 3:07pm
The equivalent to Java's
1
2
3
4
5
6
try
{
}
catch()
{
}
Statement in C++ is
1
2
3
4
5
6
try
{
}
catch()
{
}
http://www.cplusplus.com/doc/tutorial/exceptions/
Last edited on May 1, 2013 at 3:07pm
May 1, 2013 at 3:22pm
Thanks for that i kinda thought it was the same but i didnt know what to put into the catch part!! Thanks :D
Topic archived. No new replies allowed.