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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.