The first argument is casting the array "vg" to a char pointer. sizeof(vg) returns the size of the array in bytes. A C++ way to do this would be
std::array<int, 10> vg{};
file.read(static_cast<char*>(vg.begin()), vg.size());
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…