Search:

Type: Posts; User: bbray

Search: Search took 0.01 seconds.

  1. Thread: EOF

    by bbray
    Replies
    13
    Views
    2,196

    There is no key by itself. On windows it's...

    There is no key by itself. On windows it's control-z, on unix control-d.
  2. Thread: qsort help

    by bbray
    Replies
    11
    Views
    2,899

    Wow, thanks! Yes, I should have caught not adding...

    Wow, thanks! Yes, I should have caught not adding the '\0'. I made the changed and now it works. I'm not understanding why sizeof didn't work though.
  3. Thread: qsort help

    by bbray
    Replies
    11
    Views
    2,899

    That did not solve the issue. I'm wondering if...

    That did not solve the issue. I'm wondering if it could be somehow because of my conversion between a char array to an int array? After all, it seems that it works as long as I leave it with single...
  4. Thread: qsort help

    by bbray
    Replies
    11
    Views
    2,899

    Here is my program... /* Asks the operator...

    Here is my program...



    /* Asks the operator to input 10 numbers and then presents a menu
    giving the option to sort in ascending or descending order */

    #include <stdio.h>
    #include...
  5. Thread: qsort help

    by bbray
    Replies
    11
    Views
    2,899

    qsort help

    Hey guys, I'm having trouble with qsort. I just want to sort 10 numbers in ascending order. I've even copied in the code from the examples on this and other sites. The problem is that when I enter...
  6. Thread: getchar()

    by bbray
    Replies
    4
    Views
    2,023

    Thanks! I went back to the drawing board(mostly)...

    Thanks! I went back to the drawing board(mostly) and implemented the change you pointed out. It works!!

    Here's my new program.




    #include <stdio.h>
    #include <ctype.h>
  7. Thread: getchar()

    by bbray
    Replies
    4
    Views
    2,023

    Yes, you are right, it would complain. I typed...

    Yes, you are right, it would complain. I typed it in wrong. In the code I had it right.
  8. Thread: getchar()

    by bbray
    Replies
    4
    Views
    2,023

    getchar()

    I've got a simple program which asks users for a number 1- 10 and then checks if its a digit or not. At the end I want to prompt the user if they want to continue or exit
    and if they want to...
Results 1 to 8 of 8