1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
umka21 [38]
3 years ago
8

Write a program to read a record from a binary file

Computers and Technology
1 answer:
BlackZzzverrR [31]3 years ago
4 0

Answer:

To read a record from binary file in C++ use read method.

Syntax: ifstream& write(const char*, int);

Explanation:

Algorithm:

Begin

  Create a structure Student to declare variables.

  Open binary file to write.

  Check if any error occurs in file opening.

  Initialize the variables with data.

  If file open successfully, write the binary data using write method.

     Close the file for writing.

  Open the binary file to read.

  Check if any error occurs in file opening.

  If file open successfully, read the binary data file using read method.

     Close the file for reading.

  Check if any error occurs

  Print the data.

End

You might be interested in
Suppose one hundred stores participated in the
Sindrei [870]
I think the answer is A
7 0
4 years ago
This is your code.
Sever21 [200]

Construct d

  • d=[[5,10,15],[2,4,6],[11,33,55]]

So

d[2] is c i.e [11,33,55]

d[2][1]=c[1]

So it's 33

3 0
2 years ago
What can you do in the Mouse section of the Devices and Printers menu?
ANTONII [103]
See for yourself.
On windows hit windowskey+r
Type in control and then hit enter
Then search device and printers

The answer is you can add an change settings (dpi, color) of the mouse
3 0
3 years ago
The way a student prepares for a test or reviews academic material is referred to as
ahrayia [7]

Answer:

study habits

Explanation:

3 0
3 years ago
Read 2 more answers
The shift keys are smaller than the rest of the keys<br><br> True or False?
Degger [83]

False, because it's smaller than the space key, and bigger than the letter, number, backspace, tab, enter, and arrow keys.

5 0
3 years ago
Other questions:
  • Given two int variables distance and speed, write an expression that divides distance by speed using floating point arithmetic,
    11·1 answer
  • You decide to begin your presentation by providing your audience an overview of networking, with an emphasis on security and why
    11·1 answer
  • Dustin is editing a SmartArt graphic. He wants all three shapes to be different colors.
    13·1 answer
  • Wireless technology’s greatest strength, allowing access without being connected to the network by wires, is also its greatest w
    11·1 answer
  • The development of various technologies led to many historic events. Use information from the Internet to describe one major his
    7·1 answer
  • Write a for loop to populate array userGuesses with NUM_GUESSES integers. Read integers using cin. Ex: If NUM_GUESSES is 3 and u
    9·1 answer
  • In which situation is coauthoring of presentations primarily utilized?
    13·2 answers
  • How can an attacker execute malware through a script?
    15·1 answer
  • When is the new season of legacies coming out on netflix
    6·1 answer
  • What is this line called that appears and disappears in the search box<br><br> WILL MARK BRAINLIEST
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!