For the below code, post by DavT:
#include <stdlib.h>
#include <stdio.h>
int main (void)
{
char buf[BUFSIZ];
Type: Posts; User: LKH
For the below code, post by DavT:
#include <stdlib.h>
#include <stdio.h>
int main (void)
{
char buf[BUFSIZ];
But i though fget() is for file, not standard input, scanf is for standard input?
:confused: Am i right?
Thank
:confused: What is the difference between gets() and scanf?
When should i use gets() or scanf?
Thank!
Thank for yor response!
Anyone, anymore?
:D By the way, my teacher very strict, he like to check every single line of code, and compare your work with other students espeically.
Hi, this is my program, have to hand in this assignment tomorrow.
Please help me by taking a look.
;) Give some advice on mistake or improvement.
Done in MS VS 6.0
To test this program, you...
Thank for the above replies, i'm very busy so never check the forum this few days.
:p You might be right, i am wrong in the coding. (i'm very new to C programming. )
By the way, where is...
Thank for the above post.
I try the code without any result:
if( fgetc( file1 ) == fgetc( file2 ) )
match++;
else
mismatch++;
==========================
Thank for the above post.
I try the code without any result:
if( fgetc( file1 ) == fgetc( file2 ) )
match++;
else
mismatch++;
==========================
:) Hello everyone, this is my first post.
I need help on my assignment, hope someone can guide me.
In short, I need to using C, compare two (text )files and see whether the contents are the...