What does =+ mean in c++ : <p>I've been studying operator overloading and i cant understand this, whenever i use <code>s1=+s2</code>
answer is <code>s1=1 s2=1</code> and when i use <code>s2=+s1</code> i get <code>s1=2 s2=2</code>
please explain</p>

<pre><code>#include&lt;iostream&gt;
using namespace std;
class score
{   private:
    int val;
    public:
    score()
    {   val=0;  }
    score operator+()
    {   score temp;
        val=val+1;
        temp.val=val;
        return temp;    }
    void show()
    {   cout&lt;&lt;val&lt;&lt;endl;    }
};
main()
{
    score s1,s2;
    s1.show();
    s2.show();
    +s1;
    s1=+s2;
    s1.show();
    s2.show();
}
</code></pre>
