Try Catch statements

I am just wondering is there an equivalent to the java

try
{
}
catch(){}

in C++ ?

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
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.