Article View: be.comp.programming
Article #415excepties C++
From: Manchiu
Date: Fri, 25 May 2007 12:53
Date: Fri, 25 May 2007 12:53
29 lines
1411 bytes
1411 bytes
Hierbij bij ingave negatief getal wordt ik eruit gegooid, hoe komt dit ??
#include <iostream>
using namespace std;
int main()
{
int li_getal;
cout << "Geef een getal in > 0: ";
try
{
cin >> li_getal;
}
catch(int)
{
cerr << "Is kleiner dan 0" << endl;
}
if(li_getal<0)
{
throw 1;
}
return 0;
}
Technical Details
Message-ID:
<X_A5i.196355$tm4.1184810@phobos.telenet-ops.be>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.germany.com!xlned.com!feeder1.xlned.com!news.astraweb.com!border1.a.newsrouter.astraweb.com!hwmnpeer01.ams!news.highwinds-media.com!kramikske.telenet-ops.be!nntp.telenet.be!kwabbernoot.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: fcea4,961bd566f03bd1c8,start X-Google-Attributes: gidfcea4,public,usenet X-Google-Language: DUTCH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.germany.com!xlned.com!feeder1.xlned.com!news.astraweb.com!border1.a.newsrouter.astraweb.com!hwmnpeer01.ams!news.highwinds-media.com!kramikske.telenet-ops.be!nntp.telenet.be!kwabbernoot.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mail From: "Manchiu" <manchiu@nomail.com> Newsgroups: be.comp.programming Subject: excepties C++ Lines: 31 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Message-ID: <X_A5i.196355$tm4.1184810@phobos.telenet-ops.be> Date: Fri, 25 May 2007 12:53:11 GMT NNTP-Posting-Host: 81.83.193.155 X-Complaints-To: abuse@telenet.be X-Trace: phobos.telenet-ops.be 1180097591 81.83.193.155 (Fri, 25 May 2007 14:53:11 MEST) NNTP-Posting-Date: Fri, 25 May 2007 14:53:11 MEST Organization: Telenet Internet