Im compiling in dev c++ 5 beta
When I compile and run, it boot's the console app window and then exits.Code:#include <iostream>
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;
return 0;
}
I believe its just my bad beginners programming.