each entry of my array has 4 elements, a title, author, category, and size.
I am adding an entry to my array entrylist and I have to do it through parameters.
How would I make the parameters I received from the user from the input function into a new entry on for my array?
This is what I have so far
1 2 3 4 5 6
void Playlist::Add(char nTitle[], char nAuthor[], char nStyle, int nSize)
{
this->Grow(true); //increase the size of array if needed
entryList[currentSize]; //i need to add something here?
currentSize++;
}
If I understand your question correctly, the problem here is that pure arrays cannot change size in C++. Their size must be known at compile time unless they are dynamically allocated.