simple program wont compile
<p>Please take a look at my code. The error I get in Visual Studio is</p>

<pre><code>error LNK2019: unresolved external symbol "public: int __thiscall Employee::getId(void)" (?getId@Employee@@QAEHXZ) referenced in function _main
</code></pre>

<p>Employee.h</p>

<pre><code>#ifndef EMPLOYEES
#define EMPLOYEES

#include &lt;string&gt;
#include &lt;iostream&gt;
using namespace std;

class Employee
{
private:
    string name;
    int id;
public:
    Employee();
    Employee(string nm, int idd);
    string getName();
    int getId();
};

#endif
</code></pre>

<p>Employee.cpp</p>

<pre><code>#include "Employee.h"
#include &lt;string&gt;

Employee::Employee()
{
    name="unknown";
    id=0;
}

Employee::Employee(string nm, int idd)
{
    name=nm;
    id=idd;
}

string Employee::getName()
{
    return name;
}

int Employee::getId()
{
    return id;
}
</code></pre>

<p>driver</p>

<pre><code>#include &lt;iostream&gt;
#include &lt;string&gt;
#include "Employee.h"
using namespace std;

int main()
{   
    Employee bob("bob", 3);
    cout &lt;&lt; bob.getId();
}
</code></pre>
