Robert Ryan wrote:
> I have a problem with a try catch:
>   
yeah, you don't have the include for  "runtime_error"

> #include<iostream>
> using namespace std;
> expression();
> int keep_window_open();
> int main()
> try {
> while (cin)
>         cout << expression() << '\n';
>         keep_window_open();
> }
> catch (runtime_error& e) {
>         cerr << e.what() << endl;
>         int keep_window_open();
>         return 1;
> }
> catch (...) {
>         cerr << "exception \n";
>         int keep_window_open();
>         return 2;
> }
>
>
>
> .cpp: In function `int main()':
> .cpp:11: parse error before `&' token
> .cpp:11: syntax error before `&' token
> .cpp:14: parse error before `return'
> .cpp:19: parse error before `return'
>
>
>     
>
> Robert Ryan <[EMAIL PROTECTED]> wrote:
>
>        
> ---------------------------------
> Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it 
> now.
>
> [Non-text portions of this message have been removed]
>
>
>
> To unsubscribe, send a blank message to <mailto:[EMAIL PROTECTED]>. 
> Yahoo! Groups Links
>
>
>
>
>   

Reply via email to