Search:

Type: Posts; User: zackboll

Search: Search took 0.00 seconds.

  1. Replies
    12
    Views
    10,866

    thanks

    thanks for link
  2. Replies
    12
    Views
    10,866

    So stdin is referring to the input buffer. I am...

    So stdin is referring to the input buffer. I am not reading the string from a file, but rather the user types it in.

    will I have to flush the buffer after the user goes through the "scanf" for a...
  3. Replies
    12
    Views
    10,866

    so I should use fgets?

    would this be better, replace the


    gets(str);

    with


    fgets(str, SIZE, stdin);
  4. Replies
    12
    Views
    10,866

    scanning in character string

    I have a question in regards to scanning in a character array with spaces for a project im working on for an introductory class in C programming.

    I know that I cant use the scanf function becasue...
  5. Replies
    14
    Views
    2,648

    Thanks Again

    thanks again, Im new to C so im not very good

    Zack
  6. Replies
    14
    Views
    2,648

    thank you Scribbler, what you suggested worked...

    thank you Scribbler, what you suggested worked really well. I just need to figure out how to clear the buffer before inputs now.

    Zack
  7. Replies
    14
    Views
    2,648

    int fflush(FILE *ostream);

    int fflush(FILE *ostream);
  8. Replies
    14
    Views
    2,648

    buffer clearing

    Should I worry about clearing the buffer in this program. I read the FAQ. How do you clear keyboard input from buffer?

    thanks,
    Zack
  9. Replies
    14
    Views
    2,648

    fflush

    Doesn't that just clear the buffer memory?

    Zack
  10. Replies
    14
    Views
    2,648

    thanks

    Thanks,
    Im going to look in my C book and see if I can figure out how to do that.

    Zack
  11. Replies
    14
    Views
    2,648

    Input Validation Question

    In my introductory C class I wrote a program that takes two points on the earths surface and calculates the arc distance between them. I finished up the projects, except that I have one question on...
Results 1 to 11 of 11