Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Записати або прочитати декілька даних (наприклад, масив чисел) у файл однією операцією можна наступними способами:
f.read((char*)&p,sizeof(p));
read((char*)&p,sizeof(p));
(write((char*)&p,sizeof(p)) && read((char*)&p,sizeof(p)));
f.write((char*)&p,sizeof(p));
write((char*)&p,sizeof(p));
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!