Problems with Add method in TimeUnit class
<pre><code>#include &lt;iostream&gt;
#include &lt;string&gt;
#include &lt;sstream&gt;

using namespace std;

class TimeUnit
{
public:
    TimeUnit(int m, int s)
    {
        this -&gt; minutes = m;
        this -&gt; seconds = s;
    }

    string ToString()
    {
        ostringstream o;
        o &lt;&lt; minutes &lt;&lt; " minutes and " &lt;&lt; seconds &lt;&lt; " seconds." &lt;&lt; endl;

        return o.str();
    }

    void Simplify()
    {
        if (seconds &gt;= 60)
        {
            minutes += seconds / 60;
            seconds %= 60;
        }
    }

    TimeUnit Add(TimeUnit t2)
    {
        TimeUnit t3;

        t3.seconds = seconds + t2.seconds;

        if(t3.seconds &gt;= 60)
        {
            t2.minutes += 1;
            t3.seconds -= 60;
        }

        t3.minutes = minutes + t2.minutes;

        return t3;
    }

private:
    int minutes;
    int seconds;

};

int main(){

    cout &lt;&lt; "Hello World!" &lt;&lt; endl;

    TimeUnit t1(2,30);
    cout &lt;&lt; "Time1:" &lt;&lt; t1.ToString() &lt;&lt; endl;

    TimeUnit t2(3,119);
    cout &lt;&lt; "Time2:" &lt;&lt; t2.ToString();
    t2.Simplify();
    cout &lt;&lt; " simplified: " &lt;&lt; t2.ToString() &lt;&lt; endl;

    cout &lt;&lt; "Added: " &lt;&lt; t1.Add(t2).ToString() &lt;&lt; endl;
    //cout &lt;&lt; " t1 + t2: " &lt;&lt; (t1 + t2).ToString() &lt;&lt; endl;

    /*cout &lt;&lt; "Postfix increment: " &lt;&lt; (t2++).ToString() &lt;&lt; endl;
    cout &lt;&lt; "After Postfix increment: " &lt;&lt; t2.ToString() &lt;&lt; endl;

     ++t2;
     cout &lt;&lt; "Prefix increment: " &lt;&lt; t2.ToString() &lt;&lt; endl;*/

}
</code></pre>

<p>I'm having problems with my Add method. Xcode is giving me this error: "No matching constructor for initialization of TimeUnit"</p>

<p>Could someone please tell me what I am doing wrong? I've literally tried everything that I know how to do, but I can't even get it to compile with this method.</p>

<p>Here are the instructions from my professor:</p>

<blockquote>
  <p>The TimeUnit class should be able to hold a time consisting of Minutes
  and Seconds.  It should have the following methods:</p>
  
  <p>A constructor that takes a Minute and Second as parameters ToString()
  - Should return the string equivilant of the time.  "M minutes S seconds." Test1 Simplify() - This method should take the time and
  simplify it.  If the seconds is 60 seconds or over, it should reduce
  the seconds down to below 60 and increase the minutes.  For example, 2
  Min 121 seconds should become 4 minutes 1 second. Test2 Add(t2) -
  Should return a new time that is the simplified addition of the two
  times Test3 operator + should do the same thing as Add Test4 pre and
  postfix ++: should increase the time by 1 second and simplify Test5</p>
</blockquote>
