int main oder void main ?
-
Wie heisst es nun richtig?
Weil der hier sagt void m
Und der sagt int main:Also wie jetzt?
<edit=kingruedi>Fake links entfernt</edit>
-
ISO/IEC 9899:1999 (E)
ISO/IEC
5.1.2.2.1 Program startup
1 The function called at program startup is named main. The implementation declares no
prototype for this function. It shall be defined with a return type of int and with no
parameters:
int main(void) { /* ... */ }
or with two parameters (referred to here as argc and argv, though any names may be
used, as they are local to the function in which they are declared):
int main(int argc, char *argv[]) { /* ... */ }
or equivalent;9) or in some other implementation-defined manner.Gemäss Standard, beantwortet das hoffentlich deine Frage.
-
Danke
Weil hier hat mcih wohl einer ganz doll auf den Arm genommen!
[url=]http://www.c-plusplus.net/forum/posting-var-mode-is-reply-and-t-is-151186.html[/url]<edit=kingruedi>Fake link entfernt</edit>
-
Oops, hatte ganz vergessen das jetzt auch die Vorschulen in NRW Ferien haben.
-
Redhead schrieb:
Oops, hatte ganz vergessen das jetzt auch die Vorschulen in NRW Ferien haben.
[url=http://scooter-area.pytalhost.de/game/spiel.php?id=467]
Woher weißt du das?
[/url]