The qsort is at 00000159 Code: 00000010 #include "index.h" 00000011 #include "index_options.h" 00000012 #include "index_utility.h" 00000013 00000014 /**************************************************************************** ****************************************************************************/ 00000019 void readRestOfLine() 00000020 { 00000021 int c; 00000022 00000023 /* Read until the end of the line or end-of-file. */ 00000024 while ((c = fgetc(stdin)) != '\n' && c != EOF) 00000025 ; 00000026 00000027 /* Clear the error and end-of-file ...
Hello there, I am having the following problem. I am making an array of structures. The struct contains an int. I give this struct array to qsort to sort the struct array according to this int. This works if I create the struct array like struct Point track[] = { {5}, {4}, {3} }; for example. However, I need to have ...
Hi just wandering how I can apply this sort to my code :-P my original code #include int main() { int /* PersonID,Wage,Sex,Age, */ n, i; int a[10][4]; printf("please enter the amount of people you will use \n"); scanf("\n%d",&n); printf("\n=%d\n\n", n); for (i=0; i
Thanks Dragon.. I corrected that part of it but it still seems to get a runtime error. When I don't run the sort, the array prints out fine on its own but then when I go to sort it, I get the error. I've tried a lot of variations but I just can't seem to sort this thing.