View Single Post
Old 03-05-2003, 03:53 PM   #7 (permalink)
abc123
bloomberg
 
abc123's Avatar
 
Join Date: Jun 2002
Location: bloomberg
Posts: 263
abc123 is on a distinguished road
Send a message via AIM to abc123 Send a message via Yahoo to abc123
Quote:
Originally posted by joe_bruin
hmmm....

Code:
$ cat main.cpp 
#include <iostream.h>

int main(int argc, char *argv[])
{
  try
  {
    cout << "dude, i know" << endl;
  }
  catch(int e) { }
  return 0;
}

$ g++ main.cpp 
$ ./a.out 
dude, i know
$
...looks like exception handling to me (not available in c, only c++).
joe.. remind me again where i said c++ didn't have exception handling?
__________________
-- bloomberg.
abc123 is offline   Reply With Quote