摘要:
#include #include #include const unsigned char * loadfile(const std::string &file, int &size){ std::ifstream fs(file.c_str(), std::ios::binary); fs.seekg(0, std::ios::end); size = fs.tellg(); char * data = new char[size + 1]; fs.seekg(0); fs.read(data, size); fs.close(); data... 阅读全文