Re: Exemptions?

From: enki (enki034_at_yahoo.com)
Date: 01/30/05


Date: 30 Jan 2005 01:59:28 -0800

I have been reading the posts and reading some. I am starting to
almost get it. I got a program to compile but not work well. I did
this program before I real all the replys. I see some mistakes but it
is starting to get better.

#include<iostream>
#include<string>

using namespace std;

struct error{
char *_msg;
error(char *msg){ _msg = msg;}
};

int main(){

int x;
while(x != 0){
cout<<"Number:";
try{
cin>>x;
}

catch(error e){
cout<<"Must be int!\n";

x = 0;
}
  cout<<x<<"\n";
}
system("pause");
return 0;
}



Relevant Pages

  • Re: Rene is a hypocrite (OK, what else is new?)
    ... > Then stop reading as soon as you see the poster name on the top of ... > the msg then, ... first one has very few posts, and the second one a lot ...
    (alt.lang.asm)
  • Re: Malware
    ... It sounds like that spyaxe I have been reading a lot of posts about. ... A pop up msg keep coming up on my screen everytime I start IE. ...
    (microsoft.public.windowsxp.security_admin)
  • Computer Restarts. Now just hangs. PLease helph
    ... after reading the newsgroups and reading everything i have stoped it ... restarting by unchecking the restart windows option, ... get the following msg in event ... Win32.Faxbat.B worm however there is no such worm and avg does not find ...
    (microsoft.public.windowsxp.help_and_support)
  • /usr/dt/bin/ttsession[2131]: [ID 862433 daemon.error]
    ... need your quick answer what cause this msg.. ... from my reading it says about CDE session that cause this. ... logos and picture messages from MSN Malaysia ...
    (SunManagers)
  • Re: Rene is a hypocrite (OK, what else is new?)
    ... > Google Groups. ... Then stop reading as soon as you see the poster name on the top of ... the msg then, ...
    (alt.lang.asm)