Article View: be.comp.programming
Article #414Excepties C++
From: Manchiu
Date: Fri, 25 May 2007 12:43
Date: Fri, 25 May 2007 12:43
32 lines
1413 bytes
1413 bytes
Wordt er hier altijd uitgegooid door Windows met ingave negatief getal, hoe
komt dit??
#include <iostream>
using namespace std;
int main()
{
int li_getal;
try
{
cout << "Geef een getal in > 0: ";
cin >> li_getal;
}
catch(int)
{
cerr << "Is kleiner dan 0" << endl;
}
if(li_getal<0)
{
throw 1;
}
return 0;
}
Technical Details
Message-ID:
<WRA5i.196344$A21.1373274@phobos.telenet-ops.be>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder3.cambrium.nl!feeder1.cambrium.nl!feed.tweaknews.nl!news.netcologne.de!nhp.netcologne.de!195.130.132.77.MISMATCH!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,6733ef27fdca64ba,start X-Google-Attributes: gidfcea4,public,usenet X-Google-Language: DUTCH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder3.cambrium.nl!feeder1.cambrium.nl!feed.tweaknews.nl!news.netcologne.de!nhp.netcologne.de!195.130.132.77.MISMATCH!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: 34 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: <WRA5i.196344$A21.1373274@phobos.telenet-ops.be> Date: Fri, 25 May 2007 12:43:34 GMT NNTP-Posting-Host: 81.83.193.155 X-Complaints-To: abuse@telenet.be X-Trace: phobos.telenet-ops.be 1180097014 81.83.193.155 (Fri, 25 May 2007 14:43:34 MEST) NNTP-Posting-Date: Fri, 25 May 2007 14:43:34 MEST Organization: Telenet Internet