I am trying to create a loop that searches a struct array for the value of 'remove' (which is a char).
} song; //creates a struct called song;
Code to search for a track name:
The problem is that I am told 'comparison between pointer and integer'. I could remove the '*', but will then be told 'comparison of distinct pointer types lacks a cast'.
if(*songs[i].trackname == remove)
I am assuming that 'song[i] and trackname are variable types that cannot be compared? I don't really know what the '*' does, but I saw it on some site discussing this problem so thought I might try it lol.