When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
9 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
you need to add error handling for opening the file
ifstream f(file_name);
if(!f.is_open())
{
throw std::runtime_error("Failed to open file");
}
still no change...
you are sending snippets of your code, we can't see the full declaration and implementation of your classes, show it
for(int i = 0; i < objects.size(); i++)
objects.push_back(obj);
this is extremely sus
without the first line