I don't know what's wrong. I've included "fstream" and "iostream", but the compiler said 'ios' has not been declared? Here's the faulty code:
What's wrong with it?Code:std::ofstream binary_file("settings.dat",ios::out|ios::binary); binary_file.write(reinterpret_cast<char *>(&mData),sizeof(SettingData)); binary_file.close();