cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Try Catch statements
Try Catch statements
May 1, 2013 at 3:02pm UTC
mono92
(7)
I am just wondering is there an equivalent to the java
try
{
}
catch(){}
in C++ ?
May 1, 2013 at 3:07pm UTC
MiiNiPaa
(8886)
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 UTC
May 1, 2013 at 3:22pm UTC
mono92
(7)
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.