Hi, I get a Error from the code of page 15 and 16 about structs, The code from the book works fine but when i try to make my one struct. And try to make the same program but with different variables and names it doesn't work. For Example I tried to change the name of the struct with the same code.
} EmployeeD; (Changed from EmployeeT)
using namespace std;
int main ()
// create and populate an employee
EmployeeD anEmployee; ......
After this it gave my an error message:
error: expected ';' before 'anEmployee',
error: 'EmployeeD' was not declared in this scope and
error: 'anEmployee' was not declared in this scope
Can somebody explain this ?