Afficher un message
Vieux 29/05/2008, 15h02   #1
YarvinG Liu
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut the difference between \r and \n

i write two codes:
printf("123\r");
printf("123\n");
the lattar. as we all know. the output will be:
123
press any key to continue

but the formmer will be:
press any key to continue

which means data:123 has lost.
Y?
  Réponse avec citation
 
Page generated in 0,04763 seconds with 9 queries