ofstream reference using string? : <p>I'm making a program with several functions:</p>

<pre><code>int totalDays(ofstream &amp;outputFile, int noEmployee)
{
string fileName = "employeeAbsences.txt";

outputFile.open(fileName);
</code></pre>

<p>However, I don't know how to call it:</p>

<pre><code>int main()
{

int employeesNumber = employees();
string fileName = "employeeAbsences.txt";

employees();

totalDays(fileName, employeesNumber);
</code></pre>

<p>the fileName is underlined in the call saying it cannot be a string. What name am I supposed to call the first function with??</p>
