Showing posts with label
Exception Handling
.
Show all posts
Showing posts with label
Exception Handling
.
Show all posts
Friday, 27 April 2012
Program Of Exception Handling In C++
#include<iostream.h>
#include<conio.h>
main()
{
int a,b,c;
clrscr();
a=7;
b=2;
try
{
c=a/b;
cout<< c;
}
catch
{
cout<<"Divide By Zero Error";
}
getch();
}
Older Posts
Home
Subscribe to:
Posts (Atom)