View Single Post
Old 03-05-2003, 03:48 PM   #6 (permalink)
joe_bruin
LOAD "*",8,1
 
Join Date: Feb 2003
Location: la.ca.us
Posts: 254
joe_bruin is on a distinguished road
Quote:
Originally posted by abc123
not to mention it has exception handling - which c does not have at all, try/catch so its completely wrong to suggest its based on c.
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_bruin is offline   Reply With Quote