Câu hỏi 24067 - 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 SinhVien{

string _ten;

int _tuoi;

float _dtb;

};

void XULY( SinhVien &x )

{

ifstream f;

f.open("sinhvien.dat", ios::in| ios::binary);

f.read((char*)&x, sizeof(SinhVien));

f.close();

}

Chọn đáp án: