123456789101112131415161718192021222324252627282930313233343536
#include <iostream> #include <fstream> #include <string> using namespace std; struct Employees { string employeeName; string employeeID; int rate; int hours; }; istream& operator >> (istream& is, Employees& payroll) { char payrollStuff[256]; is.getline(payrollStuff, sizeof(payrollStuff)); payroll.employeeName = payrollStuff; is.getline(payrollStuff, sizeof(payrollStuff)); payroll.employeeID = payrollStuff; is.getline(payrollStuff, sizeof(payrollStuff)); payroll.rate = payrollStuff; }; int main() { const int PAYROLL_SIZE = 5; // declare a constant return 0; }