how to remove error: expected primary-expression before '.' token : <p>please help me remove this error i made these two structures and when i try to use the cin it shows this error how can i remove this error and please also tell me how to take a string in input using cin.getline and gets().</p>

<pre><code>#include &lt;iostream&gt;

using namespace std;
struct Date //Date structure
{
    int day;
    int month;
    int year;
};
struct Employee   //employee structure
{
    int Id;
    char Name[40];
    int Date;
    char Gender;
    char Des[40];
};
void Setter(Employee E)   //function for setting value in Employees 
{
    cout&lt;&lt;"Enter Id:";
    cin&gt;&gt;Employee.Id;
    cout&lt;&lt;"Enter Name:";
    cin&gt;&gt;Employee.Name;
    cout&lt;&lt;"Enter Gender:";
    cin&gt;&gt;Employee.Gender;
    cout&lt;&lt;"Enter Designation:";
    cin&gt;&gt;Employee.Des;
    cout&lt;&lt;"Enter Date of joining(DD/MM/YYYY):";
    cin&gt;&gt;Employee.Date.day&gt;&gt;Employee.Date.month&gt;&gt;Employee.Date.year;
}
int main() //main
{
    Employee el;
    Setter(el);   //calling function
    return 0;
}
</code></pre>
