trying to compile this example to get a better understanding of structures... but i keep getting errors.
any tips on better understanding this would be awesome. I'm trying to learn struct's! :)Code:#include <stdio.h>
struct database{
int id_number;
int age;
float salary;
};
int main()
{
database employee; //There is now an employee variable that has modifiable
// variables inside it.
employee.age = 22;
employee.id_number = 1;
employee.salary = 12000.21;
}
Thanks