Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 C++ 中有一个非常简单的问题。相当于什么
x = new char[length]; mystream.read(x, length*sizeof(char)); delete[] x;
忽略二进制文件的seekg一部分大小?length
seekg
length
非常感谢你 !
您不需要seekg,只需使用istream::ignore.
istream::ignore
seekg(length, std::ios::cur)