So how exactly does that work? what is EOF? I've only gotten through the first 3 sections of Teach Yourself C by Herbert Schildt
Type: Posts; User: sponi
So how exactly does that work? what is EOF? I've only gotten through the first 3 sections of Teach Yourself C by Herbert Schildt
Hey guys, I finished the program i was stumped with. After rereading and thinking more about it, it became abundantly clear and following your useful advice CommomTater.
#include <stdio.h>...
Okay well, Im going to sleep soon, i'll try writing the program again and share my results in this thread tomorrow
thanks everyone
Well there's the problem. I don't know how to determine what kind of character it is
Say i use variable char ch;
Do I just use some parameters to determine if it's a letter? ie if(ch>a && ch<z)...
Determine what type of character it is?
repeat the function to produce more input?
well i figure something like
char ch;
printf("enter digit");
scanf("%c",&ch)
that's great and really helps, thanks
Well I know about scanf, but i dont know how to reiterate if i have the user enter 10 letters or 50
Don't have anything, dont know where to start
have tried to start it, but dont know what kind of loop or anything
I'm currently teaching myself C from a book and as one of the exercises it asks to write a program that counts the number of letters, digits, and common punctuation symbols entered by the user.
I...