seed of eternity
2007-07-07 22:15:11 UTC
_CRTIMP void __cdecl qsort(void *, size_t, size_t, int (__cdecl *)
(const void *, const void *));
/*which is why I think that this is actually a command to quick sort some kind of struct.
If there is a struct defined like below*/
struct DataBase
{ int Value;
char Name[20],Address[20];
float A,B,C;
} *VData;
void main(void)
{ int NumOfData;
NumOfData=TakeDataFromFile
(VData,"DataFile.txt");
????
WriteSortedData
(NumOfData,VData,"SortedData.txt");
}
/*Please write on the ???? how to sort the struct using the qsort procedure in the stdlib.h
Please also tell me if I have to make some kind of procedure outside the void main(void) */