Write Program C Read Students Information Write File Using Block Writing Read User S Inpu Q37084059

Write a program in C++ to read students’ information, write themto a file (using block writing). Then read the user’s input (whichrecord he wants to print) and retrieve that specific record.

For example, assume the following output:

Enter student name: John

Enter student ID: 10

Enter student grade: 5

The above record needs to be written in a binary file atlocation 10.

Ask the user to enter the record he wants to retrieve:

Enter student ID you want to view

10

The information for student id 10 is:

Name: John

GPA: 5


Solution


`Hey,

Note: Brother in case of any queries, just comment inbox I would be very happy to assist all

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.