WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Programmierung (http://www.wcm.at/forum/forumdisplay.php?f=17)
-   -   Visual C 6.0 - exit (0) (http://www.wcm.at/forum/showthread.php?t=177255)

coolbininet 01.11.2005 10:08

Visual C 6.0 - exit (0)
 
Hallo Leute!

Warum bekomme ich in VC6 sobald ich mit exit(0) ein Programm beenden will keine Fehlermeldung, aber eine Warnung?

Grüsse Coolbininet

Biri 02.11.2005 20:17

hi,

so aus dem stegreif: exit bedeutet programmabbruch - fehlercode 0 = alles o.k.

wenn du dein programm "normal" beenden willst solltest du das machen, indem du im int main (...) am ende return 0; machst.

exit ist gedacht, einen fehlercode != 0 retour zu liefern.

fg
-hannes


Alle Zeitangaben in WEZ +2. Es ist jetzt 12:44 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag