Hi Programmers, To my knowledge, a try block can stand alone. But my compiler keep complaining untill I put a catch block after a try block. Below is the code, what wrong did I do? Thanks. Brian
#include <iostream>using namespace std;int f(int i){ try { cout << ++i << endl; } return 1;}int main(){ int n = 1; f(n); return 1;}