ifstream ifs("student.txt", ios::in|ios::binary); //Open the file in binary read mode. for(int i = 0; i < 2; i++). {. ifs.read((char *)&s[i], sizeof(Student));.
確定! 回上一頁