Please help me with the following problem!!

To realize a function of reading from the file in the structure. in c++
Example
using namespace std;
struct user
char name [40];
char first name [40];
char email [50];
char word [50];
float balcony;

; v [100];

The function will train to read the information from the file in the structure. The file will have 10 records.
For example, suppose the file is called an input.
You can use the while loop (! input.eof ()) to read