Any tips for my assignment?

Hi there. I have an assignment which is titled : Write an application in C++ for a company to keep track of staff records. Create at least 20 records (staff name, staff ID, position, IC number, date joined, address (city), and contact number – you may add more) in a text file. The application should read the staff records from the text file and insert them into an array of structures.
Can any experts out there help me with this assignment as I am new to C++. Thanks!
You need to know how to do read from file, so look at ifstreams. Learn classes/structs and arrays. Your struct should look like this
1
2
3
4
5
6
7
8
9
10
11
 struct Record{
  
  string name;
  int staffID;
  string position;
  int icNumber;
  int dateJoined;
  string address;
  int number;
    
};


Your array should be of type Record so something like Record anArray[size]
Last edited on
Topic archived. No new replies allowed.