There is no key by itself. On windows it's control-z, on unix control-d.
Type: Posts; User: bbray
There is no key by itself. On windows it's control-z, on unix control-d.
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.
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...
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...
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...
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>
Yes, you are right, it would complain. I typed it in wrong. In the code I had it right.
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...