Oppure

Loading
22/04/08 12:12
bip
#include <stdio.h>
#include <string.h>

int main(int argc, char**argv)
{
char buff[512];
if(argc<2)
{
printf("usage: %s <name>\n", argv[0]);
exit(0);
}
strcpy(buff, argv[1]);
printf("your name: %s\n",buff);
return 0;
}

il dev c++ mi da errore in exit(0) cioè
10 `exit' undeclared (first use this function)

come devo correggere thx in anticipo:grr:
aaa
22/04/08 12:21
WARRIOR
Includi anche:

#include <stdlib.h>
aaa
23/04/08 13:46
bip
thx:k:
aaa