Search:

Type: Posts; User: LKH

Search: Search took 0.00 seconds.

  1. Thread: Beginner Question

    by LKH
    Replies
    15
    Views
    2,821

    For the below code, post by DavT: #include...

    For the below code, post by DavT:



    #include <stdlib.h>
    #include <stdio.h>

    int main (void)
    {
    char buf[BUFSIZ];
  2. Thread: Beginner Question

    by LKH
    Replies
    15
    Views
    2,821

    But i though fget() is for file, not standard...

    But i though fget() is for file, not standard input, scanf is for standard input?

    :confused: Am i right?

    Thank
  3. Thread: Beginner Question

    by LKH
    Replies
    15
    Views
    2,821

    Beginner Question

    :confused: What is the difference between gets() and scanf?
    When should i use gets() or scanf?

    Thank!
  4. Thread: Compare files

    by LKH
    Replies
    13
    Views
    2,618

    Thank for yor response! Anyone, anymore? :D...

    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.
  5. Thread: Compare files

    by LKH
    Replies
    13
    Views
    2,618

    Hi, this is my program, have to hand in this...

    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...
  6. Thread: Compare files

    by LKH
    Replies
    13
    Views
    2,618

    Thank for the above replies, i'm very busy so...

    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...
  7. Thread: Compare files

    by LKH
    Replies
    13
    Views
    2,618

    Thank for the above post. I try the code...

    Thank for the above post.

    I try the code without any result:

    if( fgetc( file1 ) == fgetc( file2 ) )
    match++;
    else
    mismatch++;

    ==========================
  8. Thread: Compare files

    by LKH
    Replies
    13
    Views
    2,618

    Thank for the above post. I try the code...

    Thank for the above post.

    I try the code without any result:

    if( fgetc( file1 ) == fgetc( file2 ) )
    match++;
    else
    mismatch++;

    ==========================
  9. Thread: Compare files

    by LKH
    Replies
    13
    Views
    2,618

    Compare files

    :) 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...
Results 1 to 9 of 9