Ok, so I am working on a function that remove a element from the array if the name entered by a user is = to a element in the array
It clears of the memory of said element but i need to re order the array
I searched on here but nothing seemed to cover it for an array of structs
for(int i = 0; i < lCount; i++)
{
if(name == songs[i].title)
{
songs[i].title.clear();
songs[i].artist.clear();
songs[i].genre.clear();
songs[i].time = 0;
songs[i-1].title = songs[i].title;
songs[i-1].artist = songs[i].artist;
songs[i-1].genre = songs[i].genre;
songs[i-1].time = songs[i].time;
}