📜  将文件复制到向量 c++ 代码示例

📅  最后修改于: 2022-03-11 14:44:50.150000             🧑  作者: Mango

代码示例1
//Read file to the end
while(inFile.read(reinterpret_cast(&temp), sizeof(temp)))
{
    //Store each int in the vector
    myVector.push_back(temp);
}