cheers for that mate but it still gives me this error:
'quick_sort' : cannot convert parameter 1 from 'struct ipair *' to 'float *'
Type: Posts; User: nick4
cheers for that mate but it still gives me this error:
'quick_sort' : cannot convert parameter 1 from 'struct ipair *' to 'float *'
cheers mate that makes sense. when i am trying to call my quick sort from my main program do i put:
mytable.quick_sort(ptable, ub,lb);
i want to sort the table in order of the "other" values
My main problem is when i try to write or read from the ptable eg.
others = ptable[i].other;
gives error
subscript requires array or pointer type
left of '.other' must have class/struct/union...
if i put in one of the above how would it be possible to write in the key value from another function?
say in add to table..
i have alterd the class but how do i get table of pairs to be public so i can access it from main and still be in table of pairs
class table_of_pairs {
int table_size;
ipair *ptable;
int...
cheers for the help bud
Hello, i am writing a program for my data structures corse that sorts some numbers read in from a text file using quick sort. As you might tell i am new to programming (so go easy on the jargon)
I...