0

Counting letters in a .txt file (C)

https://code.sololearn.com/cw3EQdt92Cfd/#c im working on a program that counts letters, lines and words in a txt file but it counts uncorrectly the number of letters, what am i doing wrong?

24th Jun 2020, 8:35 AM
Guido Parlatore
Guido Parlatore - avatar
1 Réponse
0
The functions from <ctype.h> might help in deciding whether a character was alphabet, digit, spaces etc. I'm not sure about the way you check the character type, this is why I think you might need to check functions from that header file http://www.cplusplus.com/reference/cctype/
24th Jun 2020, 9:29 AM
Ipang