How can I implement main method in a class in C++?
<pre><code>static class EntranceClass {
public:
 static void RegisterSomething()
 {
 }

 static int main()
 {
  RegisterSomething();
  return 0;
 }
} // &lt;-expected unqualified-id at end
</code></pre>

<p>I'm getting following error : 
expected unqualified-id at end of input main.cpp Problem</p>

<p>Is there any solution</p>
