Câu hỏi 26484 - 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)

{

ofstream f;

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

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

f.close();

}

Chọn đáp án: