📅  最后修改于: 2022-03-11 14:44:56.584000             🧑  作者: Mango
#include
std::ifstream::pos_type filesize(const char* filename)
{
std::ifstream in(filename, std::ifstream::ate | std::ifstream::binary);
return in.tellg();
}