I'm trying to make an array with the information for five employees. However it's says that my structs aren't correct. I followed the book as much as I could I must be making a dumb mistake somewhere can someone point it out. I'm getting all sorts of errors.
Code:
#include <iostream>
#include <string>
using namespace std;
struct employeeType
{
nameType employee;
nameType supervisor;
dateType dob;
dateType starting;
float rate;
int id_Num;
int hours;
};
struct nameType
{
string first;
char mid;
string last;
};
struct dateType
{
int month;
int day;
int year;
};