static helper class
<p>in C# I created a static class which had a number of mathematical helper functions I could call directly without creating an instance of the class. I cannot seem to get this to work in C++. </p>

<p>For example, if the class is called MathsClass and has a function called MultiplyByThree then I would use it like this:</p>

<pre><code>float Variable1 = MathsClass.MultiplyByThree(Variable1);
</code></pre>

<p>In the C++ version of my code I am getting the errors: </p>

<pre><code> 'MathsClass' : illegal use of this type as an expression
</code></pre>

<p>and</p>

<pre><code> error C2228: left of '.MultiplyByThree' must have class/struct/union
</code></pre>

<p>How would I write the C++ equivalent of the C# static class to give this kind of functionality?</p>
