Unterprogramm (Procedure) abbrechen
-
Hallo!
Wie kann ich ein Unterprogramm (Procedure) abbrechen?
void procedure(long &a); { machwas; if (a != b) { abbruch; } machwas; } int main () { long a; machwas; procedure(a); machwas; }
Viele Grüße
pmw
-
So =>
void procedure(long &a); { machwas; if (a != b) return; machwas; } int main () { long a; machwas; procedure(a); machwas; }
mfg JJ
-
Danke