That's exactly what I've been doing since yesterday afternoon.
while((ch=fgetc(fpout))!=EOF)
{
if(ch == let)
nl++;
}
Where nl has already been decalred as an int...
Type: Posts; User: Rezi
That's exactly what I've been doing since yesterday afternoon.
while((ch=fgetc(fpout))!=EOF)
{
if(ch == let)
nl++;
}
Where nl has already been decalred as an int...
I deffinitely get what you're both talking about, it's logical to keep each function short and sweet, but I'm afraid this damn comparision between ch and let is still doing my head in.
Yes, I have to have this all in one program. So Input is the first file, I take the data from that, remove spaces and convert to caps, stick it in output. Then take the message in output, count the...
Still having a pretty rough time with this. I'm also using fgetc now, as this says that the pointer will be a character instead of an integer. Judging from what you've said this will be wrong, but...
Thank you very much for the fast responses. About the void thing, from the moment my lecturer told us what void did it always seemed like a silly idea, but she insists on the main function being...
Hi,
I'm still fairly new at C and have been asked to build a program that will count a number of specified letters to be read from a text file. This is the second stage of the task, the first...