摘要: #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... 阅读全文
posted @ 2014-02-18 17:44 20118281131 阅读(3879) 评论(1) 推荐(0) 编辑