Δημοσιεύτηκε: 16 Ιουν 2011, 21:02
vasster έγραψε:#include <stdio.h>
main(void)
{
int c,nl;
while ( ( c = getchar() ) != EOF) {
if ((c == ' ') || (c == '\n') || (c == '\t'))
nl++;
}
printf("%d words\n",nl);
}
Όλα τρέχουν οκ, αλλά μου βγάζει λάθος λέξεις, τι έγινε;