[code]struct tm *ptr;
time_t lt;
lt=time(NULL);
ptr=localtime(& l t); <--senza spazi
printf("\n\n");
printf(asctime(ptr));
system("pause"); <-- altrimenti non visualizzi nulla