Stop confusing yourself by using *employee everywhere.
Do this once:and then just use emp everywhere except where you need to set employee.Code:Employee *emp = *employee;
Do not use gets ever! It is never safe as someone can always overflow the buffer. Switch to fgets as was suggested.