title: C++ Custom User Defined Main?
body: <p>I am very confused by this code given to us:</p>
  
  <pre><code>class KeyedWord
  {
  public:
      KeyedWord(char* word); // TO BE IMPLEMENTED
      char* getWord(); // TO BE IMPLEMENTED
      char* getKey();  // TO BE IMPLEMENTED
      ~KeyedWord();
  private:
      char * _word;
      char* _key;
  };
  void main(int argumentCount, char** arguments)
  {
      if (argumentCount &lt;= 1) 
      {
          std::cout &lt;&lt; "No file name given as argument" &lt;&lt; std::endl;
      }
      else 
      {
  }
  </code></pre>
  
  <p>I am confused because:</p>
  
  <p>how am I supposed to provide an overload to main if the main is the origin of the program?</p>
  
  <p>Also, when I try to implement the one of the functions above I get an error telling me there is a definition error.  This is what I am trying:</p>
  
  <pre><code>void KeyedWord::getWord()
  {
  
      return;
  }
  </code></pre>