I have the following code:
void Category:: fillCategories(char** & categories, char** &subset, std::ifstream *input,
int*&subIndex)
{
while(!input->eof())
{
char buffer[30];
if (getCatSize()==getCatCapacty())
{
resize(categories, getCategoryCapAddress(), 5);
}
if (getSubSize()==getSubCap())
{
resize(subset, getSubsetCapAddress(), 5, subIndex);
}
std::getline(*input,buffer);
}
}
for some reason
std::getline(*input,buffer);
is giving me an error. Is there anything I can do to fix this?