void deletee()
{
    FILE *fp, *fp1;
    struct employee del;
    int id;
    int found = 0;

    if ((fp = fopen("record.dat", "r")) == NULL)
    {
        printf("\n\n\t\t\t\\t!!! ERROR !!!\n\t\t");
        exit(1);
    }
    if ((fp1 = fopen("temp.dat", "w")) == NULL)
    {
        printf("\n\n\t\t\t\\t!!! ERROR !!!\n\t\t");
        exit(1);
    }
    printf("Enter employee id: ");
    scanf("%d", &id);

    while (fread(&del, sizeof(struct employee), 1, fp))
    {
        if (del.id != id)
        {
   found = 1;
            fwrite(&del, sizeof(struct employee), 1, fp1);
        }
        else
        {
            fwrite(&del, sizeof(struct employee), 1, fp1);
        }
    }
    fclose(fp);
    fclose(fp1);

    remove("record.dat");
    rename("temp.dat", "record.dat");

    if (found == 0)
    {
        printf("Record not found\n");
    }
    else
    {
        printf("Record deleted successfully\n");
    }
}