Câu hỏi 26486 - Kỹ thuật lập trình cơ sở - IT01
Cho biết đoạn chương trình sau thực hiện thao tác xử lí gì?
struct HocSinh{
string _tenHH;
string _gioiTinh;
float _diemTB;
};
void XULY(int n, HocSinh ds[])
{
fstream f;
f.open("HocSinh.dat", ios::out|ios::binary);
for(int i=0; i
f.write((char *)&ds[i],sizeof(HocSinh));
f.close();
}