I'm getting an error on this line....

const struct names *ps1=p1;

the compile time error is "ANSI C++ forbids implicit conversion from 'void' in initialzation."

But, for qsort i have to pass type void pointers to the sort funtion does anyone know what I can do fix this?