Câu hỏi 26481 - 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 HangHoa{
string _tenHH;
float _soLuong;
float _donGia;
};
void XULY(int &n, HangHoa ds[])
{
ifstream f;
f.open("sinhvien.dat", ios::in| ios::binary);
f.read((char*)&n, sizeof(int));
f.read((char*)ds, sizeof(HangHoa)*n);
f.close();
}