title: simple c++: How to overload the multiplication operator so that float*myClass and myClass*float works
body: <pre><code>class MyClass;
  
  int main()
  {
    float a = 5;
    MyClass c1;
    MyClass c2 = a*c1;
    MyClass c3 = c1*a;
  }
  </code></pre>
  
  <p>How can I overload the multiply operator so that both a*c1 and c1*a work?</p>