Hello ladies and gents, I have tried to write my sorting function but keep on getting error messages.
Ive been reading the tutorials on this forum wich explaines alot but I'm still having lots of trouble in comprehending how pointers work and more important, how that I can correctly write the code that I need for them
Hope someone can help me out and explain with this piece of code what I'm doing wrong and how I have to change it and most important why it has to be changed!
void sorteer(char *naam[])
{
for (short i=0; i<9;i++)
{
for (short i=0; naam[i]!= '\0';i++)
{
char temp;
stricmp(*naam[i], *naam[i+1]);
strcpy(temp, *naam[i]);
strcpy(*naam[i], *naam[i+1]);
strcpy(*naam[i+1], temp);
}
}
}